.grand_abit_menu .card-tabs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.25rem;
	list-style: none;
	padding: 0;
	margin: 0;
	/*flex-wrap: wrap;*/
}
/* ====== КАРТОЧКА-ЗАКЛАДКА ====== */
.grand_abit_menu .tab-card {
	background: #fff;
	border: 2px solid #EFF3FA;
	border-radius: .5rem;
	padding: 1.25rem 1.1rem;
	text-align: center;
	cursor: pointer;
	text-decoration: none;
	color: inherit;
	position: relative;
	display: block;
}
.grand_abit_menu .tab-card:hover {
	/*transform: translateY(-4px);*/
	background: #fff;
	color: inherit;
}
.grand_abit_menu .tab-card.active {
	border-color: #2F6DB3;
}
.grand_abit_menu .nav-pills .nav-link.active, .grand_abit_menu .nav-pills .show>.nav-link {
	color: #161618;
	background-color: #FFF;
}
/* Индикатор сверху у активной */
.grand_abit_menu .tab-card.active::after {
	content: "";
	position: absolute;
	top: 0;
	left: 25%;
	right: 25%;
	height: 4px;
	background: #2F6DB3;
	border-radius: 0 0 6px 6px;
}
/* Иконка в круге */
.grand_abit_menu .tab-card .icon {
	width: 64px;
	height: 64px;
	margin: 0 auto .75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	font-size: 1.75rem;
	color: #4f46e5;
	transition: background .18s ease, color .18s ease, transform .18s ease;
}
.grand_abit_menu .tab-card:hover .icon {
	transform: scale(1.06);
}
.grand_abit_menu .tab-card.active .icon {
	color: #fff;
}
.grand_abit_menu .tab-card .title {
	font-weight: 600;
	margin-bottom: .25rem;
}
.grand_abit_menu .tab-card .desc {
	font-size: .85rem;
	color: #6c757d;
	margin: 0;
}

    /* Формочный фокус (для клавиатуры) */
   .grand_abit_menu .tab-card:focus-visible {
 outline: 3px solid rgba(13, 110, 253, .5);
 outline-offset: 2px;
}
/* ====== КОНТЕНТ ВКЛАДКИ ====== */
.grand_abit_menu .tab-content-card {
	background: #fff;
	/*border-radius: .5rem;*/
	/*padding: 1.75rem;*/
	/*border: 2px solid #EFF3FA;*/
}

/* ====== АДАПТИВ ====== */
@media (max-width: 991.98px) {
.grand_abit_menu .card-tabs {
	grid-template-columns: repeat(2, 1fr);
}
}


@media (max-width: 575.98px) {
	.grand_abit_menu .card-tabs {
		display: flex;
		flex-wrap: nowrap;
		gap: .625rem;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x mandatory;      /* было: proximity */
		overscroll-behavior-x: contain;     /* скролл не уводит страницу */
		scrollbar-width: none;
		-ms-overflow-style: none;
		padding-bottom: .25rem;
	}
	.grand_abit_menu .card-tabs::-webkit-scrollbar {
		display: none;
	}
	/* невидимый спейсер в конце: даёт последней вкладке докатиться до центра */
	.grand_abit_menu .card-tabs::after {
		content: "";
		flex: 0 0 auto;
		width: calc(7.5% + 1.375rem);
	}
.grand_abit_menu .card-tabs .nav-item {
	flex: 0 0 auto;
	width: calc(85% - 2.75rem);
	scroll-snap-align: center;
	scroll-snap-stop: always;
}
	.grand_abit_menu .card-tabs .nav-item:last-child {
		scroll-snap-align: center;
	}
	.grand_abit_menu .tab-card {
		padding: 1rem .6rem;
	}
	.grand_abit_menu .tab-card .icon {
		width: 52px;
		height: 52px;
		font-size: 1.5rem;
		margin-bottom: .5rem;
	}
	.grand_abit_menu .h-scroll {
		flex-direction: column;
		align-items: stretch;
	}
	.grand_abit_menu .h-scroll .btn {
		width: 100%;
		box-sizing: border-box;
	}
}
/* ====== СКРОЛЛ ====== */

.grand_abit_menu .h-scroll {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	padding: .5rem 0;
}
 .grand_abit_menu .h-scroll::-webkit-scrollbar {
 height: 4px;
 background: #F9FBFE;
 border: 1.5px solid #EFF3FA;
}
 .grand_abit_menu .h-scroll::-webkit-scrollbar-thumb {
background: #2F6DB3;
border-radius: 2px;
}
.grand_abit_menu .h-scroll .btn {
	white-space: normal;
	flex-shrink: 0;
}
.grand_abit_menu .btn {
	background: #ffffff;
	color: #2F6DB3;
	border: 1px solid #2F6DB3;
}
.grand_abit_menu .btn-primary {
	background: #ffffff;
	color: #2F6DB3;
	border: 1px solid #2F6DB3;
}
.grand_abit_menu .btn:active {
	background: #2F6DB3;
	color: #FFFFFF;
}


@keyframes btnFadeUp {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.grand_abit_menu .tab-pane {
	transition: opacity .3s ease;
}

.grand_abit_menu .tab-pane .h-scroll .btn {
	animation: btnFadeUp .4s ease-out both;
}

.grand_abit_menu .tab-pane .h-scroll .btn:nth-child(1) { animation-delay: 0s; }
.grand_abit_menu .tab-pane .h-scroll .btn:nth-child(2) { animation-delay: .06s; }
.grand_abit_menu .tab-pane .h-scroll .btn:nth-child(3) { animation-delay: .12s; }
.grand_abit_menu .tab-pane .h-scroll .btn:nth-child(4) { animation-delay: .18s; }
.grand_abit_menu .tab-pane .h-scroll .btn:nth-child(5) { animation-delay: .24s; }
.grand_abit_menu .tab-pane .h-scroll .btn:nth-child(6) { animation-delay: .30s; }
.grand_abit_menu .tab-pane .h-scroll .btn:nth-child(7) { animation-delay: .36s; }
.grand_abit_menu .tab-pane .h-scroll .btn:nth-child(8) { animation-delay: .42s; }
.grand_abit_menu .tab-pane .h-scroll .btn:nth-child(9) { animation-delay: .48s; }
.grand_abit_menu .tab-pane .h-scroll .btn:nth-child(10) { animation-delay: .54s; }
.grand_abit_menu .tab-pane .h-scroll .btn:nth-child(11) { animation-delay: .60s; }
.grand_abit_menu .tab-pane .h-scroll .btn:nth-child(12) { animation-delay: .66s; }
.grand_abit_menu .tab-pane .h-scroll .btn:nth-child(13) { animation-delay: .72s; }
.grand_abit_menu .tab-pane .h-scroll .btn:nth-child(14) { animation-delay: .78s; }
.grand_abit_menu .tab-pane .h-scroll .btn:nth-child(15) { animation-delay: .84s; }

.grand_abit_menu .tab-pane.show .h-scroll .btn {
	animation-name: btnFadeUp;
}

@media (prefers-reduced-motion: reduce) {
	.grand_abit_menu .tab-pane .h-scroll .btn {
		animation: none;
	}
}

