.cc-dm-hs-history {
	--cc-dm-history-text: #1b1919;
	--cc-dm-history-accent: #ab2424;
	--cc-dm-history-white: #ffffff;
	--cc-dm-history-muted: #f1f1f1;
	--cc-dm-history-item-width: 160px;
	box-sizing: border-box;
	width: 100%;
	background: var(--cc-dm-history-white);
	color: var(--cc-dm-history-text);
	font-family: Montserrat, Arial, sans-serif;
	padding-block: clamp(32px, 5vw, 58px);
}

.cc-dm-hs-history *,
.cc-dm-hs-history *::before,
.cc-dm-hs-history *::after {
	box-sizing: border-box;
}

.cc-dm-hs-history__inner {
	width: 100%;
	max-width: 1420px;
	margin-inline: auto;
	padding-inline: 0;
}

.cc-dm-hs-history__layout {
	display: grid;
	gap: 24px;
	align-items: stretch;
	width: 100%;
}

.cc-dm-hs-history__layout--has-media {
	grid-template-columns: minmax(0, 1fr) minmax(320px, 437px);
}

.cc-dm-hs-history__content {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 34px;
	min-width: 0;
	min-height: 232px;
}

.cc-dm-hs-history__title {
	margin: 0;
	color: var(--cc-dm-history-text);
	font-size: clamp(30px, 3vw, 38px);
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.1;
}

.cc-dm-hs-history__timeline-wrap {
	width: 100%;
	max-width: 856px;
	overflow-x: visible;
	overflow-y: hidden;
}

.cc-dm-hs-history__timeline {
	position: relative;
	display: grid;
	grid-template-columns: repeat(var(--cc-dm-history-count), minmax(136px, var(--cc-dm-history-item-width)));
	gap: 14px;
	width: max-content;
	max-width: 100%;
	min-width: min(856px, 100%);
	margin: 0;
	padding: 0;
	list-style: none;
}

.cc-dm-hs-history__timeline::before {
	position: absolute;
	top: 6px;
	left: 0;
	right: calc(var(--cc-dm-history-item-width) - 6px);
	height: 1px;
	background: var(--cc-dm-history-accent);
	content: "";
}

.cc-dm-hs-history__milestone {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: var(--cc-dm-history-item-width);
	min-width: 0;
	padding-top: 32px !important;
	color: var(--cc-dm-history-text);
}

.cc-dm-hs-history__marker {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	display: block;
	width: 12px;
	height: 12px;
	background: var(--cc-dm-history-accent);
	border-radius: 999px;
}

.cc-dm-hs-history__year {
	color: var(--cc-dm-history-text);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.1;
}

.cc-dm-hs-history__text {
	color: var(--cc-dm-history-text);
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.18;
}

.cc-dm-hs-history__text p {
	margin: 0;
}

.cc-dm-hs-history__text p + p {
	margin-top: 6px;
}

.cc-dm-hs-history__media {
	position: relative;
	width: 100%;
	min-height: 232px;
	overflow: hidden;
	background: var(--cc-dm-history-muted);
	border-radius: 16px;
}

.cc-dm-hs-history__image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	object-position: center center;
}

@media (max-width: 1180px) {
	.cc-dm-hs-history__layout--has-media {
		grid-template-columns: 1fr;
	}

	.cc-dm-hs-history__content {
		min-height: 0;
	}

	.cc-dm-hs-history__media {
		max-width: 437px;
	}
}

@media (max-width: 900px) {
	.cc-dm-hs-history__layout {
		gap: 22px;
	}

	.cc-dm-hs-history__timeline-wrap {
		max-width: none;
		overflow: visible;
	}

	.cc-dm-hs-history__timeline {
		display: flex;
		flex-direction: column;
		gap: 18px;
		width: 100%;
		max-width: none;
		min-width: 0;
		padding-left: 28px;
	}

	.cc-dm-hs-history__timeline::before {
		top: 4px;
		bottom: 4px;
		left: 5px;
		right: auto;
		width: 1px;
		height: auto;
	}

	.cc-dm-hs-history__milestone {
		width: 100%;
		padding-top: 0 !important;
		gap: 8px;
	}

	.cc-dm-hs-history__marker {
		top: 2px;
		left: -28px;
	}

	.cc-dm-hs-history__media {
		max-width: none;
		min-height: 220px;
	}
}

@media (max-width: 480px) {
	.cc-dm-hs-history {
		padding-block: 28px;
	}

	.cc-dm-hs-history__content {
		gap: 24px;
	}

	.cc-dm-hs-history__title {
		font-size: 28px;
		line-height: 1.14;
	}

	.cc-dm-hs-history__media {
		min-height: 200px;
		border-radius: 20px;
	}
}
