
body.bc-guide-page {
	background: #f9f0f2;
}

body.bc-guide-page .site-footer {
	margin-top: 0;
}

.bc-guide-page {
	width: 100%;
	box-sizing: border-box;
}

/* =============================================================================
 * Hero (1280+)
 * ============================================================================= */

.bc-guide-page__hero {
	width: 100%;
	box-sizing: border-box;
	padding: 48px 0 0;
}

.bc-guide-page__hero-inner {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	justify-content: space-between;
	gap: 100px;
	width: 100%;
	min-height: 500px;
	box-sizing: border-box;
}

.bc-guide-page__hero-content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 40px;
	flex: 0 0 650px;
	width: 650px;
	min-width: 0;
	min-height: 500px;
	padding-top: 40px;
	box-sizing: border-box;
}

.bc-guide-page__hero-copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
	width: 100%;
}

.bc-guide-page__hero-tag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 10px 16px;
	border-radius: 34px;
	background: var(--bc-color-accent);
	color: #fff;
	font-family: var(--bc-font-serif);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.1;
	font-feature-settings: "lnum" 1, "pnum" 1;
}

.bc-guide-page__hero-title {
	margin: 0;
	color: var(--bc-color-text);
	font-family: var(--bc-font-serif);
	font-size: 52px;
	font-weight: 700;
	line-height: 1.1;
	font-feature-settings: "lnum" 1, "pnum" 1;
}

.bc-guide-page__hero-visual {
	position: relative;
	flex: 0 0 450px;
	width: 450px;
	height: 500px;
	align-self: flex-start;
	margin-top: 0;
	overflow: hidden;
}

.bc-guide-page__hero-photo-wrap {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.bc-guide-page__hero-photo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.bc-guide-page__expert-card {
	position: absolute;
	left: 54px;
	bottom: 20px;
	z-index: 1;
	box-sizing: border-box;
	width: 344px;
	padding: 24px;
	border-radius: 24px;
	background: #fff;
}

.bc-guide-page__expert-name {
	margin: 0 0 6px;
	color: var(--bc-color-accent);
	font-family: var(--bc-font-sans);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.4;
	font-feature-settings: "lnum" 1, "pnum" 1;
}

.bc-guide-page__expert-role {
	margin: 0;
	color: var(--bc-color-body-text);
	font-family: var(--bc-font-sans);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.4;
	font-feature-settings: "lnum" 1, "pnum" 1;
}

/* =============================================================================
 * Surface + lessons (1280+)
 * ============================================================================= */

.bc-guide-page__surface {
	width: 100%;
	background: #fef5ed;
	border-radius: 80px 80px 0 0;
	box-shadow: 0 -10px 15px rgba(0, 0, 0, 0.02);
	box-sizing: border-box;
}

.bc-guide-page__lessons {
	padding: 80px 0;
	box-sizing: border-box;
}

.bc-guide-page__lessons-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 40px;
}

.bc-guide-page__lessons-title {
	margin: 0;
	color: var(--bc-color-text);
	font-family: var(--bc-font-serif);
	font-size: 40px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.8px;
	text-align: center;
}

.bc-guide-page__lessons-list {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
	width: 100%;
}

.bc-guide-page__lesson {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 48px;
	box-sizing: border-box;
	width: 100%;
	padding: 40px;
	border-radius: 40px;
	background: #fff;
}

.bc-guide-page__lesson-content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	flex: 0 0 500px;
	width: 500px;
	min-width: 0;
}

.bc-guide-page__lesson-tag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 8px 14px;
	border-radius: 34px;
	background: var(--bc-color-accent);
	color: #fff;
	font-family: var(--bc-font-serif);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.1;
	font-feature-settings: "lnum" 1, "pnum" 1;
}

.bc-guide-page__lesson-title {
	margin: 0;
	color: var(--bc-color-text);
	font-family: var(--bc-font-serif);
	font-size: 36px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.72px;
}

.bc-guide-page__lesson-description {
	margin: 0;
	color: var(--bc-color-body-text);
	font-family: var(--bc-font-sans);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.4;
	font-feature-settings: "lnum" 1, "pnum" 1;
}

.bc-guide-page__lesson-media {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	height: 320px;
	overflow: hidden;
	border-radius: 36px;
	background: #fff;
}

.bc-guide-page__lesson-preview {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bc-guide-page__lesson-play {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
}

.bc-guide-page__lesson-play-icon {
	display: block;
	width: 68px;
	height: 68px;
	pointer-events: none;
}

.bc-guide-page__lesson-play:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 4px;
	border-radius: 50%;
}

/* =============================================================================
 * Form block (1280+) — inline GetCourse
 * ============================================================================= */

.bc-guide-page__form-section {
	padding: 40px 0 80px;
	box-sizing: border-box;
}

.bc-guide-page__form-inner {
	display: flex;
	justify-content: center;
}

.bc-guide-page__form-card {
	box-sizing: border-box;
	width: 100%;
	max-width: 715px;
	min-height: 443px;
	padding: 0 36px;
	border-radius: 36px;
	background: #fff;
}

.bc-guide-page__form-mount {
	width: 100%;
	min-height: 200px;
}

.bc-guide-page__form-mount iframe {
	max-width: 100%;
}

/* =============================================================================
 * Video dialog (1280+)
 * ============================================================================= */

.bc-guide-page__dialog {
	--bc-guide-dialog-inset: 40px;

	position: fixed;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: var(--bc-guide-dialog-inset);
	border: none;
	background: transparent;
	box-sizing: border-box;
	overflow: hidden;
	color-scheme: dark;
}

.bc-guide-page__dialog[open],
.bc-guide-page__dialog:modal {
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	max-width: none;
	max-height: none;
	padding: var(--bc-guide-dialog-inset);
}

.bc-guide-page__dialog::backdrop {
	background: rgba(0, 0, 0, 0.72);
}

.bc-guide-page__dialog-surface {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	border-radius: 24px;
	overflow: hidden;
	background: #000;
	box-shadow:
		0 24px 80px rgba(0, 0, 0, 0.35),
		inset 0 0 0 1px rgba(255, 255, 255, 0.08);
	box-sizing: border-box;
}

.bc-guide-page__dialog-close {
	position: absolute;
	top: max(16px, env(safe-area-inset-top, 0px));
	right: max(16px, env(safe-area-inset-right, 0px));
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.22);
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	box-sizing: border-box;
	transition: background 0.15s ease;
}

.bc-guide-page__dialog-close-icon {
	display: block;
	margin-top: -2px;
	font-weight: 300;
}

.bc-guide-page__dialog-close:hover {
	background: rgba(255, 255, 255, 0.32);
	color: #fff;
}

.bc-guide-page__dialog-close:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.bc-guide-page__dialog-player {
	position: relative;
	flex: 1 1 auto;
	width: 100%;
	height: 100%;
	min-height: 0;
	background: #000;
	overflow: hidden;
}

.bc-guide-page__dialog-player iframe {
	display: block;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* =============================================================================
 * GetCourse form popup (тот же скрипт, widget-режим)
 * ============================================================================= */

.bc-guide-page__form-popup {
	position: fixed;
	inset: 0;
	z-index: 10000002;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	box-sizing: border-box;
	background: rgba(28, 36, 33, 0.55);
}

.bc-guide-page__form-popup[hidden] {
	display: none !important;
}

.bc-guide-page__form-popup-dialog {
	position: relative;
	width: min(640px, 100%);
	max-height: min(90vh, 900px);
	overflow: hidden;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.bc-guide-page__form-popup-close {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: #6b7280;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.bc-guide-page__form-popup-close-icon {
	display: block;
	margin-top: -2px;
	font-weight: 300;
}

.bc-guide-page__form-popup-close:hover {
	color: #3f2b22;
}

.bc-guide-page__form-popup-close:focus-visible {
	outline: 2px solid var(--bc-color-accent);
	outline-offset: 2px;
}

.bc-guide-page__form-popup-frame-wrap {
	width: 100%;
	min-height: 120px;
	overflow: hidden;
}

.bc-guide-page__form-popup-frame-wrap iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

body.bc-guide-page-form-popup-open {
	overflow: hidden;
}

@media (max-width: 767px) {
	.bc-guide-page__form-popup-dialog {
		width: min(512px, calc(100vw - 32px));
		max-height: calc(100vh - 32px);
	}

	.bc-guide-page__form-popup-frame-wrap iframe {
		margin-top: -50px;
		height: calc(100% + 50px);
	}
}

@media (max-width: 559px) {
	.bc-guide-page__form-popup {
		padding: 16px;
	}

	.bc-guide-page__form-popup-dialog {
		width: min(320px, calc(100vw - 32px));
		border-radius: 12px;
	}

	.bc-guide-page__form-popup-close {
		top: 6px;
		right: 6px;
		width: 40px;
		height: 40px;
		font-size: 24px;
	}
}

/* =============================================================================
 * Responsive (desktop-first: 1280+ база выше)
 * ============================================================================= */

/* --- Маленький десктоп (≤1279px) — Figma 1024 (2482:54016) --- */
@media (max-width: 1279px) {
	.bc-guide-page__hero {
		padding-top: 36px;
	}

	.bc-guide-page__hero-inner.bc-container,
	.bc-guide-page__lessons-inner.bc-container,
	.bc-guide-page__form-inner.bc-container {
		max-width: none;
		padding-left: 20px;
		padding-right: 20px;
	}

	.bc-guide-page__hero-inner {
		gap: 36px;
		min-height: 0;
		align-items: center;
	}

	.bc-guide-page__hero-content {
		flex: 1 1 0;
		width: auto;
		min-width: 0;
		min-height: 0;
		padding: 20px 0;
	}

	.bc-guide-page__hero-copy {
		gap: 16px;
	}

	.bc-guide-page__hero-tag {
		font-size: 17px;
	}

	.bc-guide-page__hero-title {
		font-size: 46px;
	}

	.bc-guide-page__hero-visual {
		flex: 0 0 362px;
		width: 362px;
		height: 402px;
	}

	.bc-guide-page__expert-card {
		left: 43px;
		bottom: 16px;
		width: 277px;
		padding: 19px;
		border-radius: 19px;
	}

	.bc-guide-page__expert-name {
		margin-bottom: 4px;
		font-size: 16px;
	}

	.bc-guide-page__expert-role {
		font-size: 14px;
	}

	.bc-guide-page__surface {
		border-radius: 64px 64px 0 0;
	}

	.bc-guide-page__lessons {
		padding: 64px 0;
	}

	.bc-guide-page__lessons-title {
		font-size: 34px;
		letter-spacing: -0.68px;
	}

	.bc-guide-page__lesson {
		gap: 32px;
		padding: 28px;
		border-radius: 32px;
	}

	.bc-guide-page__lesson-content {
		flex: 0 0 453px;
		width: 453px;
		gap: 0;
	}

	.bc-guide-page__lesson-tag {
		margin-bottom: 20px;
		font-size: 16px;
	}

	.bc-guide-page__lesson-title {
		margin-bottom: 16px;
		font-size: 32px;
		letter-spacing: -0.64px;
	}

	.bc-guide-page__lesson-description {
		margin: 0;
		font-size: 17px;
		line-height: 1.35;
	}

	.bc-guide-page__lesson-media {
		flex: 1 1 auto;
		align-self: stretch;
		height: auto;
		min-height: 0;
	}
}

/* --- Планшет (≤1023px) — Figma 768 (2482:54649, hero 2482:57718) --- */
@media (max-width: 1023px) {
	.bc-guide-page__hero {
		padding-top: 32px;
	}

	.bc-guide-page__hero-inner.bc-container,
	.bc-guide-page__lessons-inner.bc-container,
	.bc-guide-page__form-inner.bc-container {
		padding-left: 40px;
		padding-right: 40px;
	}

	/* Hero: breadcrumbs → tag/title → фото (как в Figma 2482:57718) */
	.bc-guide-page__hero-inner {
		flex-direction: column;
		align-items: center;
		justify-content: flex-start;
		gap: 36px;
		min-height: 0;
	}

	.bc-guide-page__hero-content {
		display: contents;
	}

	.bc-guide-page__hero-inner > .bc-guide-page__breadcrumbs {
		order: 1;
		width: 100%;
		max-width: 100%;
		align-self: stretch;
		margin: 0 0 4px;
		font-size: 16px;
		line-height: 1.4;
	}

	.bc-guide-page__hero-copy {
		order: 2;
		align-items: center;
		gap: 16px;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}

	.bc-guide-page__hero-tag {
		font-size: 17px;
	}

	.bc-guide-page__hero-title {
		font-size: 42px;
		text-align: center;
		max-width: 100%;
	}

	.bc-guide-page__hero-visual {
		order: 3;
		flex: none;
		width: 398px;
		max-width: 100%;
		height: 441px;
		min-height: 441px;
		align-self: center;
	}

	.bc-guide-page__hero-photo {
		object-position: 50% 15%;
	}

	.bc-guide-page__expert-card {
		left: 47px;
		top: 304px;
		bottom: auto;
		width: 304px;
		padding: 20px;
		border-radius: 24px;
	}

	.bc-guide-page__expert-name {
		margin-bottom: 8px;
		font-size: 18px;
	}

	.bc-guide-page__expert-role {
		font-size: 16px;
	}

	.bc-guide-page__lessons-inner {
		align-items: flex-start;
		gap: 32px;
	}

	.bc-guide-page__lessons-title {
		font-size: 36px;
		letter-spacing: -0.72px;
		text-align: left;
	}

	.bc-guide-page__lesson {
		flex-direction: column;
		gap: 24px;
		padding: 24px;
	}

	.bc-guide-page__lesson-content {
		flex: none;
		width: 100%;
	}

	.bc-guide-page__lesson-tag {
		margin-bottom: 16px;
	}

	.bc-guide-page__lesson-title {
		margin-bottom: 12px;
		font-size: 24px;
		letter-spacing: -0.48px;
	}

	.bc-guide-page__lesson-description {
		font-size: 16px;
		line-height: 1.35;
	}

	.bc-guide-page__lesson-media {
		width: 100%;
		height: auto;
		aspect-ratio: 572 / 320;
		border-radius: 32px;
		align-self: stretch;
	}

	.bc-guide-page__form-section {
		padding: 20px 0 64px;
	}

	.bc-guide-page__form-card {
		max-width: none;
		padding: 0 36px;
	}
}

/* --- Большая мобилка (≤767px) — Figma 560 (2482:56912) --- */
@media (max-width: 767px) {
	.bc-guide-page__surface {
		border-radius: 48px 48px 0 0;
	}

	.bc-guide-page__lessons-inner {
		gap: 28px;
	}

	.bc-guide-page__lesson-tag {
		font-size: 15px;
	}

	.bc-guide-page__lesson-title {
		font-size: 20px;
		letter-spacing: -0.4px;
	}

	.bc-guide-page__lesson-media {
		border-radius: 28px;
	}

	.bc-guide-page__dialog {
		--bc-guide-dialog-inset: 24px;
	}

	.bc-guide-page__dialog-surface {
		border-radius: 20px;
	}
}

/* --- Малая мобилка (≤559px) — Figma 360 (2482:57073) --- */
@media (max-width: 559px) {
	.bc-guide-page__hero-inner.bc-container,
	.bc-guide-page__lessons-inner.bc-container,
	.bc-guide-page__form-inner.bc-container {
		padding-left: 20px;
		padding-right: 20px;
	}

	.bc-guide-page__hero-inner {
		gap: 32px;
	}

	.bc-guide-page__hero-inner > .bc-guide-page__breadcrumbs {
		margin-bottom: 12px;
	}

	.bc-guide-page__hero-tag {
		font-size: 15px;
	}

	.bc-guide-page__hero-title {
		font-size: 34px;
	}

	.bc-guide-page__hero-visual {
		width: 320px;
		height: 355px;
		min-height: 355px;
	}

	.bc-guide-page__expert-card {
		left: 38px;
		top: 238px;
		width: 244px;
		padding: 16px;
		border-radius: 19px;
	}

	.bc-guide-page__expert-name {
		margin-bottom: 6px;
		font-size: 16px;
	}

	.bc-guide-page__expert-role {
		font-size: 14px;
		line-height: 1.4;
	}

	.bc-guide-page__surface {
		border-radius: 36px 36px 0 0;
	}

	.bc-guide-page__lessons {
		padding: 40px 0;
	}

	.bc-guide-page__lessons-inner {
		gap: 24px;
	}

	.bc-guide-page__lessons-title {
		font-size: 28px;
		letter-spacing: -0.56px;
	}

	.bc-guide-page__lessons-list {
		gap: 8px;
	}

	.bc-guide-page__lesson {
		gap: 20px;
		padding: 24px 20px;
	}

	.bc-guide-page__lesson-tag {
		font-size: 14px;
	}

	.bc-guide-page__lesson-title {
		font-size: 18px;
		letter-spacing: -0.36px;
	}

	.bc-guide-page__lesson-description {
		font-size: 15px;
		line-height: 1.4;
	}

	.bc-guide-page__form-section {
		padding: 40px 0 80px;
	}

	.bc-guide-page__form-card {
		min-height: 0;
		height: auto;
		padding: 0 36px;
		overflow: visible;
	}

	.bc-guide-page__form-mount {
		min-height: 0;
		overflow: visible;
	}

	.bc-guide-page__dialog {
		--bc-guide-dialog-inset: 16px;
	}

	.bc-guide-page__dialog-surface {
		border-radius: 12px;
	}

	.bc-guide-page__dialog-close {
		top: max(12px, env(safe-area-inset-top, 0px));
		right: max(12px, env(safe-area-inset-right, 0px));
		width: 40px;
		height: 40px;
		font-size: 24px;
	}
}
