/* Fluid content-fit setup */

/* Badge Group */
.retinol-badge-group {
	display: inline-flex; /* занимает ширину по контенту */
	align-items: center;
	gap: 12px;
	padding: 4px 10px 4px 4px;

	background: #fff;
	border: 1px solid #d0d5dd;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
	border-radius: 10px;

	font-family: "Inter", system-ui, sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	color: #344054;

	width: auto;
	max-width: 100%;
}

/* Badge */
.retinol-badge {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;

	background: #fef6ee;
	border: 1px solid #f9dbaf;
	border-radius: 6px;
	color: #b93815;
	white-space: nowrap;
}

/* Badge text */
.retinol-badge__text {
	display: block;
}

/* Content */
.retinol-content {
	display: flex;
	align-items: center;
	gap: 4px;
	flex: none; /* убираем растяжение */
	min-width: 0;
}

/* Message */
.retinol-message {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* NEW BLOCK */

/* === Mobile: старт с текущего положения, скролл только внутри окна === */
@media (max-width: 480px) {
	.retinol-badge-group {
		display: flex; /* заполняем ширину экрана */
		width: 100%;
		max-width: 100%;
	}

	.retinol-badge {
		flex: none;
		white-space: nowrap;
	}

	.retinol-content {
		flex: 1 1 auto;
		min-width: 0;
		overflow: hidden; /* окно, за границы не выходим */
		position: relative;
	}

	.retinol-message {
		display: inline-block;
		white-space: nowrap;

		/* важно: переопределяем базовые ellipsis/overflow */
		overflow: visible !important;
		text-overflow: clip !important;

		/* стартуем из текущего положения (видимый текст) */
		transform: translateX(0);
		will-change: transform;
		animation: retinol-slide-left 12s linear infinite;
	}
}

/* Ключевые кадры: из текущего положения уезжаем влево на свою ширину */
@keyframes retinol-slide-left {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-100%);
	}
}

/* Если в системе включено "уменьшение анимации" — не анимируем */
@media (prefers-reduced-motion: reduce) {
	.retinol-message {
		animation: none !important;
	}
}

/* NEW BLOCK END */

/* ===== Retinol Fluid Heading Block ===== */

.retinol-section {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px; /* расстояние между заголовком и текстом */
	padding: 0; /* оставь как есть или задай внешний отступ контейнером-родителем */
}

/* Heading */
.retinol-heading {
	margin: 0;
	text-align: center;

	/* Display xl/Semibold */
	font-family: "Inter", system-ui, sans-serif;
	font-style: normal;
	font-weight: 600;
	font-size: 60px;
	line-height: 72px; /* 120% */
	letter-spacing: -0.02em;
	color: white;

	/* Fluid */
	max-width: 1024px;
}

/* Supporting text */
.retinol-supporting {
	margin: 0;
	text-align: center;

	/* Text xl/Regular */
	font-family: "Inter", system-ui, sans-serif;
	font-style: normal;
	font-weight: 400;
	font-size: 20px;
	line-height: 30px; /* 150% */
	color: white;

	/* Fluid */
	max-width: 768px;
}

.shc-label-row {
	color: white !important;
}

.shc-btn {
	padding: 12px 18px !important;
	background: #7c6736 !important;
	box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05), inset 0px 0px 0px 1px rgba(16, 24, 40, 0.18), inset 0px -2px 0px rgba(16, 24, 40, 0.05) !important;
	border-radius: 8px !important;
	color: #ffffff !important;
}

/* — optional: небольшая адаптивность — */
@media (max-width: 768px) {
	.retinol-heading {
		font-size: 44px;
		line-height: 56px;
	}
	.retinol-supporting {
		font-size: 18px;
		line-height: 28px;
	}
}

@media (max-width: 480px) {
	.retinol-heading {
		font-size: 34px;
		line-height: 44px;
		letter-spacing: -0.01em;
	}
	.retinol-supporting {
		font-size: 16px;
		line-height: 24px;
	}
}
