* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-sans);
	line-height: 1.55;
}

a {
	color: var(--green);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

.container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Шапка */
.site-header {
	background: var(--surface);
	border-bottom: 1px solid var(--border);
	position: sticky;
	top: 0;
	z-index: 10;
}

.header-inner {
	display: flex;
	align-items: center;
	min-height: 64px;
	gap: 12px;
}

.brand {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--text);
}

.brand:hover {
	text-decoration: none;
}

.brand-logo {
	height: 46px;
	width: auto;
	padding: 3px;
	background: var(--bg);
	border: 2px solid var(--gold);
	border-radius: 12px;
	box-shadow: 0 0 14px rgba(240, 185, 11, 0.45);
}

.brand-name {
	font-size: 1.12rem;
	font-weight: 800;
	letter-spacing: 0.03em;
	white-space: nowrap;
	background: linear-gradient(110deg,
			var(--text) 40%,
			var(--gold) 50%,
			var(--text) 60%);
	background-size: 220% auto;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: brand-shine 3.5s linear infinite;
}

@keyframes brand-shine {
	0% {
		background-position: 200% center;
	}

	100% {
		background-position: -200% center;
	}
}

.nav {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 12px;
	justify-content: flex-end;
	white-space: nowrap;
}

.nav-link {
	color: var(--text);
	font-weight: 500;
}

.nav-link-cta {
	color: var(--green);
}

.nav-breakview {
	color: var(--gold);
	border-color: rgba(240, 185, 11, 0.45);
	white-space: nowrap;
}

.hero-breakview {
	color: var(--gold);
	border-color: rgba(240, 185, 11, 0.45);
}

.nav-profile {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.nav-avatar {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--gold);
}

.nav-avatar-placeholder {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--green), var(--gold));
	color: #04150b;
	font-weight: 700;
	font-size: 0.9rem;
}

.main {
	padding: 32px 20px 48px;
	min-height: calc(100vh - 64px - 56px);
}

/* Подвал */
.site-footer {
	background: var(--surface);
	border-top: 1px solid var(--border);
	color: var(--text-muted);
	padding: 18px 20px;
	font-size: 0.9rem;
}

.footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.footer-support {
	color: var(--green);
	font-weight: 500;
}

/* Заголовки */
h1,
h2,
h3 {
	font-weight: 700;
	line-height: 1.2;
}

.page-title {
	margin-top: 0;
}

.section-title {
	margin: 28px 0 12px;
	color: var(--gold);
}

.muted {
	color: var(--text-muted);
}

/* Кнопки */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 1px solid var(--border);
	background: var(--surface-2);
	color: var(--text);
	padding: 9px 16px;
	border-radius: var(--radius);
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	font-size: 0.95rem;
}

.btn:hover {
	filter: brightness(1.1);
	text-decoration: none;
}

.btn-primary {
	background: var(--green);
	border-color: var(--green);
	color: #04150b;
}

.btn-ghost {
	background: transparent;
}

.btn-danger {
	background: transparent;
	border-color: var(--red);
	color: var(--red);
}

.btn-success {
	background: var(--green);
	color: #04150b;
	border-color: var(--green);
}

.btn-block {
	width: 100%;
}

.btn-sm {
	padding: 5px 10px;
	font-size: 0.85rem;
}

/* Карточки и списки */
.cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
}

.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 18px;
	color: var(--text);
	box-shadow: var(--shadow);
}

.card:hover {
	border-color: var(--green);
	text-decoration: none;
}

.card-title {
	margin: 0 0 6px;
}

.card-desc {
	color: var(--text-muted);
	margin: 0;
}

.list-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 12px 16px;
	margin-bottom: 10px;
	gap: 12px;
	flex-wrap: wrap;
}

.list-main {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.list-title {
	font-weight: 600;
}

.clickable-row {
	cursor: pointer;
	transition: color 0.15s;
}

.clickable-row:hover .list-title {
	color: var(--green);
}

.row-open-hint {
	font-size: 0.78rem;
	opacity: 0.75;
}

/* Защита медиа от скачивания/скриншотов (сдерживание на уровне браузера).
   ВАЖНО: pointer-events НЕ отключается у видео — иначе кнопка Play в контролах
   плеера уроков не нажимается и видео не воспроизводится. Защита от скачивания
   дублируется в JS (protectMedia в app.js): контекстное меню, dragstart,
   controlslist=nodownload, disablepictureinpicture. */
.doc-media,
.doc-image img,
.doc-embed iframe {
	user-select: none;
	-webkit-user-select: none;
	-webkit-user-drag: none;
	pointer-events: none;
}

/* Видео в документах (уроки, страница курса) остаётся интерактивным: контролы
   плеера должны принимать клики, иначе воспроизведение невозможно. */
.doc-video video {
	user-select: none;
	-webkit-user-select: none;
	-webkit-user-drag: none;
	pointer-events: auto;
}

.doc-media a,
.doc-media * {
	-webkit-user-drag: none;
}

/* Пилюли */
.pill {
	display: inline-block;
	padding: 2px 9px;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 600;
}

.pill-green {
	background: rgba(34, 197, 94, 0.15);
	color: var(--green);
}

.pill-red {
	background: rgba(239, 68, 68, 0.15);
	color: var(--red);
}

.pill-muted {
	background: var(--surface-2);
	color: var(--text-muted);
}

.pill-inline {
	margin-left: 8px;
}

/* Формы */
.form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.form label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 0.9rem;
}

.form input[type="text"],
.form input[type="email"],
.form input[type="password"] {
	background: var(--bg);
	border: 1px solid var(--border);
	color: var(--text);
	border-radius: var(--radius);
	padding: 10px 12px;
	font-family: inherit;
}

.form-inline {
	flex-direction: row;
	align-items: center;
	flex-wrap: wrap;
}

.auth-card {
	max-width: 420px;
	margin: 40px auto;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 28px;
	box-shadow: var(--shadow);
}

.auth-switch {
	text-align: center;
	margin-top: 16px;
	color: var(--text-muted);
}

/* Алерты */
.alert {
	padding: 10px 14px;
	border-radius: var(--radius);
	margin: 12px 0;
}

.alert-error {
	background: rgba(239, 68, 68, 0.12);
	color: var(--red);
	border: 1px solid var(--red);
}

/* Лендинг */
.hero {
	text-align: center;
	padding: 20px 0 30px;
}

.hero-candles {
	width: 100%;
	height: auto;
	border-radius: var(--radius);
	margin-bottom: 12px;
}

.hero h1 {
	font-size: 2.4rem;
	margin: 8px 0;
}

.hero-sub {
	color: var(--text-muted);
	max-width: 640px;
	margin: 0 auto 20px;
}

.hero-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

.features {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 14px;
	margin-top: 24px;
}

.feature {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 18px;
}

.feature h3 {
	margin-top: 0;
}

.feature-action {
	cursor: pointer;
	transition:
		border-color 0.2s,
		transform 0.2s;
}

.feature-action:hover {
	border-color: var(--gold);
	transform: translateY(-2px);
}

.feature-link {
	display: block;
	color: var(--text);
	transition:
		border-color 0.2s,
		transform 0.2s;
}

.feature-link:hover {
	text-decoration: none;
	border-color: var(--green);
	transform: translateY(-2px);
}

/* --- Новый лендинг --- */
.section-title-center {
	text-align: center;
}

.benefits {
	max-width: 760px;
	margin: 28px auto 0;
	text-align: center;
}

.benefits-lead {
	color: var(--text-muted);
	font-size: 1.08rem;
	margin: 0 auto;
}

.curriculum {
	margin-top: 36px;
}

.curriculum-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	margin-bottom: 22px;
}

.curriculum-head .section-title {
	margin-bottom: 0;
}

.curriculum-meta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.badge-gold {
	background: rgba(240, 185, 11, 0.15);
	color: var(--gold);
	border: 1px solid rgba(240, 185, 11, 0.4);
}

.curriculum-note {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--text);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.curriculum-note-icon {
	width: 16px;
	height: 16px;
	color: var(--green);
	flex: 0 0 auto;
}

.curriculum-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 12px;
}

.curriculum-item {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 14px 16px;
	transition:
		border-color 0.2s,
		transform 0.2s;
}

.curriculum-item:hover {
	border-color: var(--green);
	transform: translateY(-2px);
}

.curriculum-icon {
	color: var(--green);
	flex: 0 0 auto;
	display: inline-flex;
}

.curriculum-icon svg {
	width: 26px;
	height: 26px;
	display: block;
}

.curriculum-title {
	font-weight: 600;
}

.bonus-card {
	position: relative;
	margin-top: 36px;
	padding: 26px 22px;
	background: linear-gradient(135deg, var(--surface-2), var(--surface));
	border: 1px solid var(--gold);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.bonus-card .section-title {
	margin-top: 0;
}

.bonus-title {
	margin: 4px 0 8px;
	font-size: 1.5rem;
}

.bonus-text {
	color: var(--text-muted);
	margin: 0;
	max-width: 640px;
}

.audience {
	margin-top: 36px;
}

.audience-list {
	list-style: none;
	padding: 0;
	margin: 0 auto;
	max-width: 640px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.audience-list li {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 14px 16px;
	font-weight: 500;
}

/* Отзывы */
.reviews-preview {
	margin-top: 40px;
}

.rating-summary {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.rating-score {
	font-size: 2.2rem;
	font-weight: 800;
	font-family: var(--font-mono);
	color: var(--gold);
}

.rating-stars {
	color: var(--gold);
	letter-spacing: 2px;
}

.reviews-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 16px;
	margin-bottom: 18px;
}

.review-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 16px;
	box-shadow: var(--shadow);
}

.review-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 10px;
}

.review-photo {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--gold);
}

.review-photo-placeholder {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--green), var(--gold));
	color: #04150b;
	font-weight: 700;
}

.review-name {
	font-weight: 700;
}

.review-date {
	color: var(--text-muted);
	font-size: 0.85rem;
}

.review-stars {
	margin-left: auto;
	color: var(--gold);
	letter-spacing: 1px;
}

.review-text {
	margin: 0;
}

/* Форма отзывов */
.review-form-wrap {
	margin: 24px 0;
	padding: 20px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	max-width: 640px;
}

.review-form-wrap .section-title {
	margin-top: 0;
}

.review-form-wrap .form-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 14px;
}

.review-form-wrap .form-label {
	font-weight: 600;
	color: var(--text-muted);
	font-size: 0.9rem;
}

.star-rating {
	display: inline-flex;
	gap: 4px;
}

.star {
	background: transparent;
	border: none;
	color: var(--border);
	font-size: 1.7rem;
	line-height: 1;
	cursor: pointer;
	padding: 0 2px;
	transition: color 0.15s;
}

.star.active,
.star:hover {
	color: var(--gold);
}

.review-textarea {
	width: 100%;
	min-height: 110px;
	resize: vertical;
	background: var(--bg);
	border: 1px solid var(--border);
	color: var(--text);
	border-radius: var(--radius);
	padding: 12px 14px;
	font-family: inherit;
	line-height: 1.5;
}

.review-textarea:focus {
	outline: 2px solid var(--green);
	border-color: transparent;
}

.review-form-actions {
	margin-top: 6px;
}

.review-msg {
	margin-top: 12px;
}

.review-status-blocked {
	padding: 12px 14px;
	border-radius: var(--radius);
	background: rgba(239, 68, 68, 0.1);
	border: 1px solid rgba(239, 68, 68, 0.35);
	color: #f87171;
}

/* Строка загрузки медиа (кнопка + статус) */
.media-field-row {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.media-field-row .modal-input {
	flex: 1 1 auto;
	min-width: 200px;
}

.media-upload-status {
	font-size: 0.85rem;
}

/* Модалка подписки */
.price {
	font-size: 1.3rem;
	font-weight: 800;
	color: var(--gold);
	margin: 6px 0 0;
}

.subscribe-msg {
	margin-top: 12px;
}

/* Урок */
.block {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 18px;
	margin-bottom: 14px;
}

.block-media {
	max-width: 100%;
	border-radius: 6px;
}

.block iframe.block-media {
	aspect-ratio: 16 / 9;
	width: 100%;
	border: 0;
}

/* Тест */
.quiz-question {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 18px;
	margin-bottom: 14px;
}

.quiz-question-title {
	margin-top: 0;
}

.quiz-option {
	display: block;
	padding: 8px 10px;
	border-radius: 8px;
	cursor: pointer;
}

.quiz-option:hover {
	background: var(--surface-2);
}

.quiz-result {
	padding: 20px;
	border-radius: var(--radius);
	margin-top: 16px;
	text-align: center;
}

.quiz-result.is-passed {
	background: rgba(34, 197, 94, 0.12);
	border: 1px solid var(--green);
}

.quiz-result.is-failed {
	background: rgba(239, 68, 68, 0.12);
	border: 1px solid var(--red);
}

/* Профиль */
.panel {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 20px;
}

.profile-rows {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 16px;
}

.profile-row {
	display: flex;
	justify-content: space-between;
	border-bottom: 1px solid var(--border);
	padding: 8px 0;
}

.profile-label {
	color: var(--text-muted);
}

.profile-value {
	font-family: var(--font-mono);
}

/* Аватарка */
.avatar-box {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 18px;
}

.avatar-img {
	width: 84px;
	height: 84px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--border);
	background: var(--surface-2);
}

.avatar-img.avatar-empty {
	background: linear-gradient(135deg, var(--green), var(--gold));
	display: inline-flex;
}

.avatar-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

/* Ошибки */
.error-box {
	text-align: center;
	padding: 60px 20px;
}

.error-code {
	font-size: 5rem;
	font-weight: 800;
	color: var(--red);
	font-family: var(--font-mono);
}

/* Хлебные крошки */
.crumbs {
	margin-bottom: 16px;
	color: var(--text-muted);
}

/* Админ */
.admin-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 16px;
	margin-bottom: 14px;
}

.admin-card-nested {
	margin: 10px 0 10px 22px;
}

.admin-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.admin-title {
	font-weight: 700;
}

.admin-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.admin-sub {
	margin-top: 12px;
}

.admin-add {
	margin-top: 8px;
}

.admin-lesson .list-title {
	font-size: 0.95rem;
}

/* Модальное окно-мастер для ввода данных */
.modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(6, 8, 11, 0.72);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100;
	padding: 20px;
}

.modal-overlay[hidden] {
	display: none !important;
}

.modal {
	position: relative;
	width: 100%;
	max-width: 520px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 22px;
}

.modal-title {
	margin: 0 0 16px;
}

.modal-close {
	position: absolute;
	top: 10px;
	right: 12px;
	background: transparent;
	border: none;
	color: var(--text-muted);
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	padding: 0 4px;
}

.modal-close:hover {
	color: var(--red);
}

.modal-body {
	margin-bottom: 18px;
}

/* Попап-меню BreakView в шапке */
.nav-breakview {
	position: relative;
}

.breakview-menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	min-width: 250px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 6px;
	z-index: 1000;
	display: none;
}

.breakview-menu.open {
	display: block;
}

.breakview-menu-item {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 10px 12px;
	border: none;
	background: none;
	color: var(--text);
	font-family: inherit;
	font-size: 0.95rem;
	text-align: left;
	text-decoration: none;
	border-radius: 8px;
	cursor: pointer;
}

.breakview-menu-item:hover {
	background: var(--surface-2);
}

.breakview-menu-icon {
	flex: 0 0 auto;
}

/* Модалка с видео-обзором */
.modal-lg {
	max-width: 860px;
}

.breakview-video {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 8px;
	overflow: hidden;
}

.breakview-video video,
.breakview-video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: none;
	background: #000;
}

.modal-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.modal-label {
	font-weight: 600;
	color: var(--text);
}

.modal-input {
	width: 100%;
	background: var(--bg);
	border: 1px solid var(--border);
	color: var(--text);
	border-radius: var(--radius);
	padding: 12px 14px;
	font-family: inherit;
	font-size: 1rem;
	resize: vertical;
}

textarea.modal-input {
	min-height: 130px;
	line-height: 1.5;
}

.modal-field-checkbox {
	flex-direction: row;
	align-items: center;
	gap: 10px;
	font-weight: 500;
	cursor: pointer;
}

.modal-field-checkbox input {
	width: 18px;
	height: 18px;
	accent-color: var(--green);
}

.modal-actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
}

/* Панель блоков контента урока */
.blocks-panel {
	width: 100%;
	margin-top: 10px;
	padding: 12px;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

.blocks-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 10px;
}

.block-row {
	align-items: flex-start;
}

.block-pos {
	font-family: var(--font-mono);
	color: var(--gold);
}

.block-snippet {
	max-width: 460px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Панель конструктора теста */
.quiz-panel {
	width: 100%;
	margin-top: 10px;
	padding: 12px;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

.quiz-panel .blocks-head {
	flex-wrap: wrap;
}

.quiz-pct {
	max-width: 110px;
}

.option-row {
	padding-left: 18px;
}

.upload-status {
	display: block;
	min-height: 1.2em;
	font-size: 0.9rem;
}

.upload-err {
	color: #e5484d;
}

@media (max-width: 600px) {
	.header-inner {
		flex-wrap: wrap;
		justify-content: center;
		padding: 10px 20px;
	}

	.nav {
		flex-basis: 100%;
		justify-content: center;
		white-space: normal;
		flex-wrap: wrap;
	}

	.brand-name {
		display: none;
	}

	.features {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* --- Документная структура контента --- */
.doc {
	max-width: 780px;
	line-height: 1.7;
	color: var(--text-1);
}

.doc h1,
.doc h2,
.doc h3,
.doc h4,
.doc h5,
.doc h6 {
	margin: 1.2em 0 0.5em;
	line-height: 1.3;
}

.doc p {
	margin: 0 0 1em;
}

.lesson-title {
	margin-bottom: 0.4em;
}

.doc-media {
	margin: 1.2em 0;
}

.doc-image img {
	display: block;
	max-width: 100%;
	border-radius: 8px;
	border: 1px solid var(--border);
}

.doc-video video,
.doc-video iframe,
.doc-embed iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	display: block;
	border: none;
	border-radius: 8px;
	background: #000;
}

/* Курс (витрина) */
.course-intro {
	font-size: 1.08em;
	color: var(--text-1);
}

.course-desc {
	color: var(--text-2);
}

.course-video {
	margin: 1em 0 1.6em;
}

.btn-lg {
	padding: 12px 22px;
	font-size: 1.02em;
}

.pill-gold {
	background: rgba(240, 185, 11, 0.15);
	color: #f0b90b;
}

.alert-info {
	background: rgba(59, 130, 246, 0.12);
	color: #93c5fd;
	border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Тест: подсветка ответов */
.quiz-result.show {
	display: block;
	margin-bottom: 1.2em;
}

.quiz-option.is-correct {
	background: rgba(34, 197, 94, 0.12);
	border-color: rgba(34, 197, 94, 0.5);
}

.quiz-option.is-wrong {
	background: rgba(239, 68, 68, 0.12);
	border-color: rgba(239, 68, 68, 0.5);
}

.quiz-option.is-selected {
	outline: 2px solid var(--accent-green);
}

.quiz-question.has-error .quiz-question-title {
	color: #f87171;
}

/* Админ-редакторы «документы» */
.doc-editor {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.doc-editor .panel,
.doc-section {
	background: var(--surface-1);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 18px;
}

.doc-section {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.doc-items {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.doc-node-row {
	align-items: center;
}

.doc-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.field-hint {
	display: block;
	margin-top: 4px;
	font-size: 0.85em;
}

#doc-status .alert {
	margin: 12px 0 0;
}

/* Тост-уведомления */
.toast-container {
	position: fixed;
	top: 16px;
	right: 16px;
	z-index: 10000;
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-width: min(380px, calc(100vw - 32px));
	pointer-events: none;
}

.toast {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	background: var(--surface);
	color: var(--text);
	border: 1px solid var(--border);
	font-size: 0.95rem;
	line-height: 1.35;
	opacity: 0;
	transform: translateY(-8px);
	transition: opacity 0.25s ease, transform 0.25s ease;
	pointer-events: auto;
}

.toast-show {
	opacity: 1;
	transform: translateY(0);
}

.toast-hide {
	opacity: 0;
	transform: translateY(-8px);
}

.toast-success {
	border-color: var(--green);
	background: rgba(34, 197, 94, 0.1);
}

.toast-error {
	border-color: var(--red);
	background: rgba(239, 68, 68, 0.12);
	color: var(--red);
}

.toast-close {
	flex: 0 0 auto;
	border: none;
	background: none;
	color: inherit;
	opacity: 0.6;
	font-size: 1.2rem;
	cursor: pointer;
	padding: 0 2px;
}

.toast-close:hover {
	opacity: 1;
}