/* =====================================================
   Course Access — заглушка скрытого содержимого <dlehide>
   Плагин для DataLife Engine. Изолированные классы,
   зелёно-белая палитра сайта, без конфликтов с .quote
   ===================================================== */

.course-access {
	position: relative;
	width: 100%;
	margin: 24px 0;
	box-sizing: border-box;
	aspect-ratio: 16 / 9;
	min-height: 240px;
	overflow: hidden;
	isolation: isolate;
	border: 1px solid #eaeaea;
	border-radius: 10px;
	background-color: #f3f3f3;
}

/* Фоновое изображение (планшет и материалы урока) */
.course-access__bg {
	position: absolute;
	inset: -20px;
	z-index: 0;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	filter: blur(2px);
	transform: scale(1.05);
}

/* Светлая вуаль поверх фона */
.course-access__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: grid;
	place-items: center;
	padding: 24px;
	background: linear-gradient(
		rgba(255, 255, 255, 0.35),
		rgba(255, 255, 255, 0.55)
	);
}

/* Карточка сообщения */
.course-access__content {
	max-width: 480px;
	width: 100%;
	padding: 24px 28px;
	text-align: center;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(255, 255, 255, 0.95);
	border-radius: 10px;
	box-shadow: 0 10px 35px rgba(30, 40, 50, 0.15);
	backdrop-filter: blur(8px);
}

.course-access__title {
	margin: 0 0 10px;
	color: #343434;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.35;
}

.course-access__message {
	margin: 0 0 18px;
	color: #646464;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.55;
}

/* Цена курса */
.course-access__price {
	margin: 0 0 18px;
}

.course-access__price-value {
	display: inline-block;
	padding: 6px 16px;
	border: 1px solid #b9eb80;
	border-radius: 999px;
	background-color: #ebffd4;
	color: #13771e;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
}

/* Кнопка (по мотивам .hero__btn: блик, подъём, сдвиг иконки) */
.course-access__action {
	display: flex;
	justify-content: center;
}

.course-access__button {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 30px;
	overflow: hidden;
	border-radius: 8px;
	background-color: #5caf35;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	box-shadow: 0 10px 25px rgba(92, 175, 53, 0.35);
	transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Движущийся блик */
.course-access__button::before {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	z-index: -1;
	width: 50%;
	height: 100%;
	background: linear-gradient(
		to right,
		transparent 0%,
		rgba(255, 255, 255, 0) 10%,
		rgba(255, 255, 255, 0.4) 50%,
		rgba(255, 255, 255, 0) 90%,
		transparent 100%
	);
	transform: skewX(-25deg);
	animation: course-access-shimmer 4s infinite linear;
}

@keyframes course-access-shimmer {
	0% {
		left: -100%;
	}
	40% {
		left: 150%;
	}
	100% {
		left: 150%;
	}
}

.course-access__button-icon {
	width: 18px;
	height: 18px;
	flex: none;
	transition: transform 0.3s ease;
}

.course-access__button:hover {
	background-color: #29a737;
	color: #fff;
	transform: translateY(-3px);
	box-shadow: 0 15px 35px rgba(92, 175, 53, 0.45);
}

.course-access__button:hover .course-access__button-icon {
	transform: translateX(5px);
}

.course-access__button:focus-visible {
	outline: 3px solid #9ed460;
	outline-offset: 2px;
}

.course-access__button:active {
	transform: translateY(-1px);
}

/* Акцент по типу доступа */
.course-access--register {
	border-top: 3px solid #7eb93a;
}

.course-access--paid {
	border-top: 3px solid #29a737;
}

.course-access--restricted {
	border-top: 3px solid #cdcdcd;
}

/* Мобильные устройства */
@media (max-width: 640px) {
	.course-access {
		aspect-ratio: auto;
		min-height: 320px;
		margin: 16px 0;
	}

	.course-access__overlay {
		padding: 16px;
	}

	.course-access__content {
		padding: 18px 16px;
	}

	.course-access__title {
		font-size: 17px;
	}

	.course-access__message {
		font-size: 14px;
		margin-bottom: 14px;
	}

	.course-access__button {
		width: 100%;
		padding: 13px 18px;
		font-size: 15px;
	}
}

/* Уважение к настройкам пользователя */
@media (prefers-reduced-motion: reduce) {
	.course-access__button,
	.course-access__button-icon {
		transition: none;
	}

	.course-access__button::before {
		animation: none;
		display: none;
	}

	.course-access__button:hover {
		transform: none;
	}
}
