.tabs-section {
	position: relative;
	overflow: hidden;
	padding-block: var(--section-gap, clamp(56px, 9vw, 140px));
	background: var(--bg-page, #fbfcfb);
}

.tabs-section--alt {
	background: var(--bg-alt, var(--sage-pale, #ebf2eb));
}

.tabs-container {
	width: 100%;
	max-width: var(--container-max, 1280px);
	margin-inline: auto;
	padding-inline: var(--gutter, clamp(20px, 5vw, 80px));
}

.tabs-head {
	position: relative;
	z-index: 1;
	max-width: 62ch;
	margin-inline: auto;
	text-align: center;
}

.tabs-title {
	margin: 0;
	font-size: var(--fs-h2, clamp(1.875rem, 1.4rem + 2.1vw, 3rem));
	font-weight: var(--fw-bold, 700);
	line-height: var(--lh-h2, 1.15);
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.tabs-inner {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) auto minmax(0, 1.1fr);
	gap: var(--space-8, 64px);
	align-items: start;
	margin-top: var(--space-8, 64px);
}

.tabs-menu {
	display: flex;
	flex-direction: column;
	gap: var(--space-2, 8px);
}

.tabs-item {
	display: flex;
	align-items: center;
	gap: var(--space-3, 16px);
	width: 100%;
	min-height: 64px;
	padding: var(--space-2, 8px) var(--space-3, 16px);
	border: 0;
	border-radius: var(--radius-md, 12px);
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: color var(--dur, 180ms) var(--ease, cubic-bezier(0.2, 0, 0, 1)), background-color var(--dur, 180ms) var(--ease, cubic-bezier(0.2, 0, 0, 1));
}

.tabs-item span {
	color: var(--text-secondary, #4d594f);
}

.tabs-item[aria-selected="true"] {
	background: var(--sage-pale, #ebf2eb);
}

.tabs-item[aria-selected="true"] span,
.tabs-item:hover span {
	color: var(--text-primary, #1a1d1a);
}

.tabs-icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--sage-light, #c8d9c9);
	color: var(--sage-800, #445a46);
	box-shadow: inset 0 0 20px rgb(255 255 255 / 60%);
}

.tabs-icon svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.tabs-item > span:last-child {
	font-size: var(--fs-h4, clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem));
	font-weight: var(--fw-semibold, 600);
	letter-spacing: -0.01em;
}

.tabs-rail {
	position: relative;
	width: 2px;
	align-self: stretch;
	background: var(--border, #d5ded6);
}

.tabs-thumb {
	position: absolute;
	top: 0;
	left: 50%;
	width: 12px;
	height: 12px;
	margin-left: -6px;
	border-radius: 50%;
	background: var(--sage-deep, #6b8f6e);
	box-shadow: 0 0 0 6px var(--bg-alt, #ebf2eb);
	transition: transform 220ms var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1));
}

.tabs-panel {
	min-height: 340px;
	padding: var(--space-6, 40px);
	border: 1px solid var(--border, #d5ded6);
	border-radius: var(--radius-lg, 16px);
	background: radial-gradient(120% 120% at 90% 0%, rgb(200 217 201 / 55%) 0%, transparent 62%), var(--bg-card, #fff);
	color: var(--text-primary, #1a1d1a);
	box-shadow: var(--shadow-soft, 0 1px 2px rgb(14 14 14 / 3%), 0 10px 30px -12px rgb(14 14 14 / 10%));
}

.tabs-panel :focus-visible {
	outline-color: var(--sage-800, #445a46);
}

.tabs-pane__title {
	margin: 0;
	font-size: var(--fs-h3, clamp(1.5rem, 1.25rem + 1.1vw, 2rem));
	font-weight: var(--fw-semibold, 600);
	line-height: var(--lh-h3, 1.2);
	color: var(--text-primary, #1a1d1a);
}

.tabs-pane__text {
	margin-top: var(--space-3, 16px);
	font-size: var(--fs-body-l, clamp(1.0625rem, 1rem + 0.3vw, 1.25rem));
	line-height: 1.5;
	color: var(--text-secondary, #4d594f);
	text-wrap: pretty;
}

.tabs-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin-top: var(--space-5, 32px);
	padding: var(--space-3, 16px) var(--space-5, 32px);
	border: 1px solid var(--ink, #0e0e0e);
	border-radius: var(--radius-pill, 999px);
	background: var(--ink, #0e0e0e);
	color: var(--text-inverse, #fff);
	font-size: var(--fs-button, 1rem);
	font-weight: var(--fw-semibold, 600);
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background-color var(--dur, 180ms) var(--ease, cubic-bezier(0.2, 0, 0, 1)), border-color var(--dur, 180ms) var(--ease, cubic-bezier(0.2, 0, 0, 1)), color var(--dur, 180ms) var(--ease, cubic-bezier(0.2, 0, 0, 1)), transform var(--dur, 180ms) var(--ease, cubic-bezier(0.2, 0, 0, 1)), box-shadow var(--dur, 180ms) var(--ease, cubic-bezier(0.2, 0, 0, 1));
}

.tabs-cta:hover {
	border-color: #242924;
	background: #242924;
	color: #fff;
}

@media (hover: hover) and (pointer: fine) {
	.tabs-cta:hover {
		transform: translateY(-2px);
		box-shadow: 0 10px 22px -10px rgb(14 14 14 / 45%);
	}
}

.tabs-pane {
	animation: tabs-pane-in 200ms var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

@keyframes tabs-pane-in {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.tabs-pane {
		animation: none;
	}
}

@media (max-width: 1100px) {
	.tabs-inner {
		gap: var(--space-5, 32px);
	}
}

@media (max-width: 900px) {
	.tabs-inner {
		grid-template-columns: 1fr;
	}

	.tabs-rail {
		display: none;
	}

	.tabs-panel {
		min-height: 0;
	}

	.tabs-item {
		border: 1px solid transparent;
	}

	.tabs-item[aria-selected="true"] {
		border-color: var(--sage-deep, #6b8f6e);
		background: var(--bg-card, #fff);
		box-shadow: var(--shadow-soft, 0 1px 2px rgb(14 14 14 / 3%), 0 10px 30px -12px rgb(14 14 14 / 10%));
	}

	.tabs-item[aria-selected="true"] .tabs-icon {
		background: var(--sage-deep, #6b8f6e);
		color: #fff;
		box-shadow: none;
	}
}

@media (max-width: 700px) {
	.tabs-cta {
		width: 100%;
	}
}
