/**
 * Treatment Process — Figma 199:58570 (1600px).
 */

.anm-treatment-process {
	--anm-tp-ref-w: 1600;
	--anm-tp-col-left: 40.625rem;
	--anm-tp-col-content: 40.5rem;
	--anm-tp-marker-size: 3.4375rem;
	--anm-tp-marker-gap: 4rem;
	--anm-tp-step-gap: 15.9375rem;
	--anm-tp-heading-gradient: linear-gradient(-4.55deg, #dfdee8 27.93%, #aaa9ad 125.18%, #878787 226.65%);
	--anm-tp-btn-gradient: linear-gradient(29.03deg, #8fd9fb 16.98%, #b0e4fc 97.78%);
	--anm-tp-marker-active: linear-gradient(63.65deg, #8fd9fb 16.98%, #b0e4fc 97.78%);
	--anm-tp-border: #1a1a1a;
	--anm-tp-marker-border: #a1dffb;
	--anm-tp-marker-idle-bg: #01151e;
	--anm-tp-marker-idle-text: #dfdee8;
	--anm-tp-marker-active-text: #044f71;
	--anm-tp-line-active: #8fd9fb;
	--anm-tp-ease: cubic-bezier(0.33, 1, 0.68, 1);
	--anm-tp-duration: 0.85s;

	box-sizing: border-box;
	width: 100%;
	max-width: calc(var(--anm-tp-ref-w) * 1px);
	margin-left: auto;
	margin-right: auto;
	padding-block: clamp(3rem, 6vw, 5rem);
	padding-inline: var(--anm-section-gutter);
	color: #fff;
}

.anm-treatment-process__inner {
	position: relative;
	width: 100%;
}

.anm-treatment-process__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: visible;
}

.anm-treatment-process__bg-glow {
	position: absolute;
	top: 50%;
	left: -36%;
	width: 88.3125%;
	max-width: 88.3125rem;
	height: auto;
	transform: translateY(-50%) scale(1.5);
	pointer-events: none;
	mask-image: linear-gradient(to right, #000 0%, #000 42%, transparent 68%);
	z-index: -1;
}

.anm-treatment-process__layout {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, var(--anm-tp-col-left)) minmax(0, 1fr);
	grid-template-rows: auto auto;
	column-gap: clamp(2rem, 5vw, 5rem);
	row-gap: 2rem;
	align-items: start;
}

.anm-treatment-process__intro-col {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	grid-column: 1;
	grid-row: 1;
	max-width: var(--anm-tp-col-left);
}

.anm-treatment-process__label {
	margin: 0;
	grid-column: 2;
	grid-row: 1;
	justify-self: end;
	font-family: "IBM Plex Sans", sans-serif;
	font-size: 1.125rem;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: -0.02em;
	color: #a7a7a7;
	text-align: right;
	white-space: nowrap;
}

.anm-treatment-process__cta-col {
	grid-column: 1;
	grid-row: 2;
}

.anm-treatment-process__timeline-col {
	grid-column: 2;
	grid-row: 2;
	justify-self: end;
	width: min(100%, calc(var(--anm-tp-marker-size) + var(--anm-tp-marker-gap) + var(--anm-tp-col-content)));
}

/* --- Nagłówek lewa kolumna --- */
.anm-treatment-process__heading {
	margin: 0;
	font-family: "Playfair Display", Georgia, serif;
	font-size: clamp(2.25rem, 4vw, 4rem);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: -0.03em;
	background: var(--anm-tp-heading-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

.anm-treatment-process__intro {
	margin: 0;
	max-width: 40.4375rem;
	font-family: "IBM Plex Sans", sans-serif;
	font-size: clamp(1rem, 1.25vw, 1.25rem);
	font-weight: 400;
	line-height: 1.4;
	color: #fff;
	text-align: justify;
}

.anm-treatment-process__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 12.5rem;
	max-width: 100%;
	padding: 1.125rem 2rem;
	border-radius: 8px;
	background: var(--anm-tp-btn-gradient);
	font-family: "IBM Plex Sans", sans-serif !important;
	font-size: 1rem;
	font-weight: 500;
	line-height: normal;
	letter-spacing: -0.01em;
	color: var(--anm-tp-marker-active-text);
	text-decoration: none;
	transition: opacity 0.25s ease;
}

.anm-treatment-process__btn:hover {
	opacity: 0.92;
	color: var(--anm-tp-marker-active-text);
}

/* --- Timeline --- */
.anm-treatment-process__timeline {
	position: relative;
	width: 100%;
}

.anm-treatment-process__track {
	position: absolute;
	top: 0;
	bottom: 0;
	left: calc(var(--anm-tp-marker-size) / 2);
	width: 1px;
	transform: translateX(-50%);
	pointer-events: none;
}

.anm-treatment-process__connector {
	position: absolute;
	left: 0;
	overflow: hidden;
	width: 1px;
	background: var(--anm-tp-border);
}

.anm-treatment-process__connector::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--anm-tp-line-active);
	opacity: 0;
	transition: opacity var(--anm-tp-duration) var(--anm-tp-ease);
}

.anm-treatment-process__connector.is-complete::before {
	opacity: 1;
}

.anm-treatment-process__connector.is-active::before {
	opacity: 1;
	background: linear-gradient(180deg, var(--anm-tp-line-active) 0%, var(--anm-tp-border) 100%);
}

.anm-treatment-process__steps {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.anm-treatment-process__step {
	display: grid;
	grid-template-columns: var(--anm-tp-marker-size) minmax(0, 1fr);
	gap: 0 var(--anm-tp-marker-gap);
	align-items: start;
	min-height: var(--anm-tp-step-gap);
}

.anm-treatment-process__step:last-child {
	min-height: auto;
}

.anm-treatment-process__marker {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--anm-tp-marker-size);
	height: var(--anm-tp-marker-size);
	border-radius: 8px;
	background: var(--anm-tp-marker-idle-bg);
	border: 1px solid var(--anm-tp-marker-border);
	box-sizing: border-box;
	transition: border-color var(--anm-tp-duration) var(--anm-tp-ease);
}

.anm-treatment-process__marker::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: var(--anm-tp-marker-active);
	opacity: 0;
	transition: opacity var(--anm-tp-duration) var(--anm-tp-ease);
}

.anm-treatment-process__number {
	position: relative;
	z-index: 1;
	font-family: "IBM Plex Sans", sans-serif !important;
	font-size: 1rem;
	font-weight: 500;
	line-height: normal;
	letter-spacing: -0.01em;
	color: var(--anm-tp-marker-idle-text);
	transition: color var(--anm-tp-duration) var(--anm-tp-ease);
}

.anm-treatment-process__step.is-complete .anm-treatment-process__marker,
.anm-treatment-process__step.is-active .anm-treatment-process__marker {
	border-color: transparent;
}

.anm-treatment-process__step.is-complete .anm-treatment-process__marker::before,
.anm-treatment-process__step.is-active .anm-treatment-process__marker::before {
	opacity: 1;
}

.anm-treatment-process__step.is-complete .anm-treatment-process__number,
.anm-treatment-process__step.is-active .anm-treatment-process__number {
	color: var(--anm-tp-marker-active-text);
}

.anm-treatment-process__content {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	max-width: var(--anm-tp-col-content);
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--anm-tp-border);
}

.anm-treatment-process__step:last-child .anm-treatment-process__content {
	border-bottom: 0;
	padding-bottom: 0;
}

.anm-treatment-process__step-title {
	margin: 0;
	font-family: "IBM Plex Sans", sans-serif !important;
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.8);
	text-align: justify;
}

.anm-treatment-process__step-text {
	margin: 0;
	font-family: "IBM Plex Sans", sans-serif;
	font-size: 1.125rem;
	font-weight: 400;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.6);
}

.anm-treatment-process__empty {
	margin: 0;
	font-family: "IBM Plex Sans", sans-serif;
	font-size: 1rem;
	color: rgba(255, 255, 255, 0.6);
}

@media (prefers-reduced-motion: reduce) {
	.anm-treatment-process {
		--anm-tp-duration: 0.01ms;
	}
}

@media (max-width: 1200px) {
	.anm-treatment-process__layout {
		grid-template-columns: 1fr;
	}

	.anm-treatment-process__intro-col,
	.anm-treatment-process__label,
	.anm-treatment-process__cta-col,
	.anm-treatment-process__timeline-col {
		grid-column: 1;
		justify-self: stretch;
		width: 100%;
		max-width: none;
	}

	.anm-treatment-process__intro-col {
		grid-row: 1;
	}

	.anm-treatment-process__label {
		grid-row: 2;
		text-align: left;
	}

	.anm-treatment-process__cta-col {
		grid-row: 3;
	}

	.anm-treatment-process__timeline-col {
		grid-row: 4;
	}

	.anm-treatment-process__step {
		min-height: auto;
		padding-bottom: 2rem;
	}
}

@media (max-width: 782px) {
	.anm-treatment-process {
		--anm-tp-marker-size: 2.75rem;
		--anm-tp-marker-gap: 1.5rem;
	}

	.anm-treatment-process__bg {
		display: none;
	}

	.anm-treatment-process__track {
		left: calc(var(--anm-tp-marker-size) / 2);
	}
}
