.timeline-columns {
	position: relative;
}

.timeline-container {
	margin-bottom: 130px;
}

.timeline-row {
	display: flex;
	margin-bottom: 10px;
	position: relative;
	gap: 10px;
	opacity: 0;
	transform: translateY(20px);
	animation: fadeInUp 0.6s ease forwards;
}

/* Первая колонка - счетчик */
.timeline-counter-col {
	width: 50px;
	flex-shrink: 0;
}

.counter-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	height: 100%;
}

.counter-circle {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: var(--brand-alpha200);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	position: relative;
	z-index: 2;
	flex-shrink: 0;
	font-weight: 500;
	line-height: 26px;
	border: 2px solid rgba(233, 78, 27, 0.15);
	cursor: pointer;
	transition: all 0.3s ease;
}

.counter-number {
	color: var(--brand100);
	transition: all 0.3s ease;
}

.counter-number {
	display: block;
	line-height: 1;
}

.counter-line {
	position: absolute;
	top: 52px;
	bottom: 0;
	width: 1px;
	background: repeating-linear-gradient(
		to bottom, 
		#e94e1b, 
		#e94e1b 3px, 
		transparent 3px, 
		transparent 8px
	);
	z-index: 1;
	min-height: 20px;
}

.timeline-content-col {
	flex: 1;
	margin-top: 15px;
}

.timeline-content {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: flex-start;
	padding-left: 15px;
	transition: all 0.3s ease;
}

.timeline-year {
	font-weight: 500;
	font-size: 16px;
	line-height: 24px;
	color: var(--brand100);
}

.timeline-text ul {
	list-style-type: disc;
	margin: 0;
	padding-left: 20px;
}

.timeline-text {
	font-weight: 400;
	font-size: 14px;
	line-height: 24px;
	letter-spacing: 0px;
	color: var(--text);
}

.timeline-text p {
	margin: 15px 0;
}

.timeline-text p:first-child {
	margin-top: 0;
}

.timeline-text p:last-child {
	margin-bottom: 0;
}

/* Стили для активного состояния */
.timeline-row.active .counter-circle {
	border-color: var(--brand200);
	background-color: var(--brand200);
}

.timeline-row.active .counter-circle .counter-number {
	color: var(--white);
}

.timeline-row.active .timeline-year {
	font-weight: 600;
	color: var(--brand100);
}

/* Анимация появления */
.timeline-row:nth-child(1) { animation-delay: 0.1s; }
.timeline-row:nth-child(2) { animation-delay: 0.2s; }
.timeline-row:nth-child(3) { animation-delay: 0.3s; }
.timeline-row:nth-child(4) { animation-delay: 0.4s; }
.timeline-row:nth-child(5) { animation-delay: 0.5s; }
.timeline-row:nth-child(6) { animation-delay: 0.6s; }
.timeline-row:nth-child(7) { animation-delay: 0.7s; }
.timeline-row:nth-child(8) { animation-delay: 0.8s; }
.timeline-row:nth-child(9) { animation-delay: 0.9s; }

@keyframes fadeInUp {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.last-row .counter-line {
	display: none;
}

@media (max-width: 768px) {
	.timeline-container {
		margin-bottom: 70px;
	}

	.timeline-row {
		flex-direction: row;
		gap: 10px;
	}

	.timeline-counter-col {
		width: 50px;
		flex-shrink: 0;
	}

	.counter-wrapper {
		flex-direction: column;
		align-items: center;
	}

	.counter-line {
		position: absolute;
		top: 52px;
		left: 50%;
		transform: translateX(-50%);
		width: 1px;
		height: auto !important;
		background: repeating-linear-gradient(
			to bottom, 
			#e94e1b, 
			#e94e1b 3px, 
			transparent 3px, 
			transparent 8px
		) !important;
	}

	.timeline-content-col {
		margin-top: 15px;
	}
}

@media(max-width: 500px) {
	.timeline-container {
		margin-bottom: 50px;
	}
}