/* Контейнер для карточек — прокручиваемый */
.cards-container {
	max-height: 600px;
	/* Ограничиваем высоту */
	overflow-y: auto;
	padding: 10px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(10px);
	margin-bottom: 40px;
}

.grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
	gap: 20px;
}

.card {
	background: rgba(255, 255, 255, 0.1);
	padding: 20px;
	border-radius: 12px;
	backdrop-filter: blur(10px);
	transition: transform 0.2s ease;
}

.card:hover {
	transform: translateY(-2px);
	background: rgba(255, 255, 255, 0.15);
}

.card-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: bold;
	margin-bottom: 15px;
}

.card-title i {
	font-size: 1.3rem;
}

.card p {
	margin: 8px 0;
}

.contact-info {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 10px 0;
	font-size: 0.95rem;
}

.contact-info i {
	font-size: 1.1rem;
}

/* Стили для прокрутки (Chrome, Edge, Safari) */
.cards-container::-webkit-scrollbar {
	width: 12px;
	/* ширина полосы */
}

.cards-container::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.05);
	border-radius: 6px;
	margin: 5px 0;
}

.cards-container::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.3);
	border-radius: 6px;
	border: 3px solid transparent;
	background-clip: padding-box;
	/* чтобы border был прозрачным, а thumb — "внутренним" */
}

.cards-container::-webkit-scrollbar-thumb:hover {
	background: rgba(255, 255, 255, 0.5);
}

.cards-container::-webkit-scrollbar-corner {
	background: transparent;
}

/* Улучшение для Firefox (ограниченно) */
@supports (-moz-appearance: none) {
	.cards-container {
		scrollbar-width: thin;
		/* thin, auto, or none */
		scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
	}
}


/* Табы */
.tabs {
	display: flex;
	gap: 16px;
	margin-bottom: 20px;
}

.tab-btn {
	padding: 20px 30px;
	background: rgba(255, 255, 255, 0.15);
	border: none;
	font-size: 18px;
	border-radius: 30px;
	color: white;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.3s ease;
}



.tab-btn:hover {
	background: rgba(255, 255, 255, 0.25);
}

.tab-btn.active {
	background: white;
	color: #7fd8d1;
}

.card a{
	color: #fff;
}

.card .footer__contacts-item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 500;
	font-size: 18px;
}

.card .footer__contacts-item__icon {
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.card .footer__item-buttons {
	margin-top: 15px;
	margin-bottom: 15px;
}

.card .footer__item-buttons .btn {
	min-width: auto;
	border-width: 2px;
	height: auto;
	padding: 13px 25px 9px 25px;
	font-size: 15px;
}

.footer__contacts-item+.footer__contacts-item {
		margin-top: 8px !important;
}

.card-description {
	margin-bottom: 6px;			
}

@media (max-width: 690px) {
	.tab-btn {
		padding: 15px 25px;
		font-size: 16px;
	}

	.grid {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
		gap: 20px;
	}
}