/* ── Tree Cards block ── */

.tree-block {
	padding: 80px 0;
}

/* Dotted panel (same texture as .hero-services__visual) */
.tree {
	position: relative;
	border-radius: 22px;
	border: 1px solid var(--gray-100, #E0DEDB);
	background-image: url(../../../../dist/icon/dots.svg);
	background-repeat: repeat;
	background-size: 12px 12px;
	padding: 60px;
	overflow: hidden;
}

/* ── Header ── */

.tree__header {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	margin-inline: auto;
	max-width: 720px;
}

.tree__header .section-title {
	margin: 18px 0 20px 0;
}

.tree__header .section-desc {
	max-width: 512px;
	margin: 0 auto;
}

/* ── Rotating logo ── */

.tree__logo {
	display: flex;
	justify-content: center;
	margin: clamp(32px, 5vw, 56px) 0 0;
}

.tree__logo-inner {
	display: flex;
	align-items: center;
	justify-content: center;

	border-radius: 50%;
	border: 1.2px solid var(--black, #191919);
	background: #FFF;
	width: 120px;
	height: 120px;
}

.tree__logo-mark {
	display: block;
	width: 81.594px;
	height: 81.594px;
	flex-shrink: 0;
	aspect-ratio: 1/1;
	animation: tree-spin 9s linear infinite;
}

.tree__logo-mark svg {
	display: block;
	width: 100%;
	height: 100%;
}

@keyframes tree-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.tree__logo-mark {
		animation: none;
	}
}

/* ── Diagram (connector + cards) ── */

.tree__diagram {
	position: relative;
	margin-top: 0;
}

/* Dashed connector — stretched so its lines always meet the nodes */
.tree__connector {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 60%;
	height: calc(100% - 225px);
	z-index: 0;
	pointer-events: none;
}

/* Horizontal branches: logo → the two top cards (always). */
.tree__connector-branch {
	position: absolute;
	top: 41px;
	left: 0;
	width: 100%;
	height: auto;
}

/* Vertical line: centre → the third card (only rendered when a 3rd card exists).
   Sits in the column gap between the two top cards, stretched down to the node. */
.tree__connector-vertical {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 8px;
	height: 100%;
}

.tree__connector-branch svg,
.tree__connector-vertical svg {
	display: block;
	width: 100%;
	height: 100%;
}

/* ── Cards ── */

.tree__cards {
	position: relative;
	z-index: 1;
	max-width: 100%;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px 115px;
	padding-top: 100px;
}

/* Third card centred below, matching a single-card width */
.tree__card:nth-child(3) {
	grid-column: 1 / -1;
	justify-self: center;
	width: calc(50% - 100px);
}

.tree__card {
	display: flex;
	flex-direction: column;
	padding: 32px 20px;
	border-radius: 14px;
	border: 10px solid #B2B1AE;
	background: #fff;
	min-height: 210px;
}

.tree__card-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.tree__card-title {
	margin: 0;
	color: var(--Dark, #192023);
	font-size: 26px;
	font-style: normal;
	font-weight: 500;
	line-height: 124%;
	/* 32.24px */
	letter-spacing: -0.39px;
}

.tree__card-num {
	flex-shrink: 0;
	padding-top: 6px;

	color: var(--Dark, #192023);

font-size: 18px;
font-style: normal;
font-weight: 500;
line-height: 140%;
}

.tree__card-divider {
	display: block;
	height: 1px;
	margin: 20px 0;
	background: rgba(25, 25, 25, 0.08);
}

.tree__card-desc {
	color: var(--black, #191919);
	font-size: 16px;
	font-weight: 500;
	line-height: 140%;
	opacity: 0.6;
}

.tree__card-desc p {
	margin: 0;
}

.tree__card-desc p+p {
	margin-top: var(--space-s, 12px);
}

/* ── Responsive ── */
@media(max-width:1125px) {
	.tree__connector {
		display: none;
	}
}

@media (max-width: 900px) {
	.tree__connector {
		display: none;
	}

	.tree__cards {
		grid-template-columns: 1fr;
		column-gap: 0;
		row-gap: 16px;
		padding-top: clamp(32px, 6vw, 48px);
		max-width: 560px;
	}

	.tree__card:nth-child(3) {
		grid-column: auto;
		width: 100%;
	}

	.tree {
		position: relative;
		border-radius: 0;
		border: 0px solid var(--gray-100, #E0DEDB);
		background-image: none;
		background-repeat: repeat;
		background-size: 12px 12px;
		padding: 0;
		overflow: hidden;
	}

	.tree__card-divider {
		margin: 16px 0;
	}
}

@media (max-width: 768px) {
	.tree__logo-mark{
		width: 68.618px;
height: 68.618px;
	}
	.tree__card-num {
		padding-top: 4px;
		font-size: 16px;
		font-style: normal;
		font-weight: 500;
		line-height: 140%;
		color: var(--Dark, #192023);
	}

	.tree-block {
		padding: 60px 0;
	}

	.tree__logo-inner {
		width: 100.917px;
		height: 100px;
	}

	.tree__card-title {
		font-size: 24px;
font-style: normal;
font-weight: 500;
line-height: 130%; /* 31.2px */
letter-spacing: -0.12px;
	}

	.tree__logo {
		position: relative;
	}

	.tree__logo:after {
		content: '';
		display: block;
		background-image: url("data:image/svg+xml,%3Csvg width='8' height='39' viewBox='0 0 8 39' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 0.5L4 19.5L4 38.5' stroke='%23B2B1AE' stroke-linecap='round' stroke-dasharray='4 4'/%3E%3Ccircle cx='4' cy='19.5' r='4' fill='%23191919'/%3E%3C/svg%3E%0A");
		height: 40px;
		width: 8px;
		background-position: center;
		background-size: 100%;
		position: absolute;
		bottom: -40px;
		left: calc(50% - 4px);
	}

	.tree__cards {
		padding-top: 40px;
		gap: 20px;
	}

	.tree__cards .tree__card {
		position: relative;
		border-width: 8px;
		border-radius: 14px;

	}

	.tree-block {
		padding: 0px 0;
	}

	.tree__cards .tree__card:after {
		content: '';
		display: block;
		background-image: url("data:image/svg+xml,%3Csvg width='4' height='19' viewBox='0 0 4 19' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 0.5L2 9.5L2 18.5' stroke='%23B2B1AE' stroke-linecap='round' stroke-dasharray='4 4'/%3E%3Ccircle cx='2' cy='9.5' r='2' fill='%23191919'/%3E%3C/svg%3E%0A");
		height: 20px;
		width: 4px;
		background-position: center;
		background-size: 100%;
		position: absolute;
		bottom: -28px;
		left: calc(50% - 2px);
	}

	.tree__cards .tree__card:last-child:after {
		display: none;
	}

	.tree-block {
		padding: 60px 0 0 0;
	}
}