/* Заголовок страницы и фильтр по буквам */
.specialist-card {
	display: flex;
}

.specialists-header {
	margin-bottom: 40px;
	display: flex;
	justify-content: space-between;
	align-items: end;
}

.page-title {
	margin-bottom: 0;
}

.specialists-not-found {
	display: none;
	text-align: center;
	margin-top: 20px;
	width: 100%;
	text-align: center;
	padding: 10px 0;
	height: max-content;
	background-color: #efefef;
	border-radius: 30px;
}

.specialists-not-found.active {
	display: block;
}

/* Фильтр по буквам */
.letters-filter {
	display: flex;
	flex-direction: column;
	gap: 5px;
	max-width: 625px;
}

.letters-filter-top,
.letters-filter-bottom {
	display: flex;
	border-radius: 30px;
	gap: 5px;

	background-color: var(--color-light-gray);
}

.letter {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	font-size: 16px;
	line-height: 20px;
	color: #000;
	text-decoration: none;
	transition: all 0.3s ease;
}

.letter:hover {
	background-color: #e9edf6;
}

.letter.active {
	background-color: var(--accent-primary);
	color: #fff;
	border-radius: 30px;
}

@media (max-width: 768px) {
	.letters-filter {
		gap: 5px;
	}

	.letter {
		width: 30px;
		height: 30px;
		font-size: 16px;
	}
}

@media (max-width: 576px) {
	.letters-filter {
		gap: 3px;
	}

	.letter {
		width: 20px;
		height: 20px;
		font-size: 12px;
	}
}

/* Основной макет */
.specialists-layout {
	display: flex;
	gap: 30px;
	margin-top: 20px;
	margin-bottom: 180px !important;
}

/* Левая колонка с фильтрами */
.filters-sidebar {
	width: 280px;
	flex-shrink: 0;
	height: fit-content;
}

.filters-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.filters-header h3 {
	font-size: 20px;
	font-weight: 600;
	color: #111827;
	margin: 0;
}

.clear-filters {
	color: #4f46e5;
	font-size: 14px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
}

.clear-filters:hover {
	text-decoration: underline;
}

.filter-group {
	margin-bottom: 30px;
}

.filter-title {
	font-size: 16px;
	line-height: 20px;
	color: #00000080;
	font-weight: 500;
}

.filter-select {
	width: 100%;
	padding: 16px 16px;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	background-color: #ffffff;
	font-size: 14px;
	color: #111827;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 36px;
}

.filter-select:focus {
	outline: none;
	border-color: #4f46e5;
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.apply-filters {
	width: 100%;
	background-color: var(--accent-primary);
	color: white;
	border: none;
	border-radius: 30px;
	padding: 13px 94.5px;
	font-size: 16px;
	line-height: 20px;
	font-weight: 400;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 30px;
	transition: background-color 0.2s;
}

.apply-filters:hover {
	background-color: var(--accent-primary-hover);
}

.apply-filters svg {
	width: 16px;
	height: 16px;
}

/* Правая колонка с карточками */
.specialists-container {
	flex-grow: 1;
}

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

@media (max-width: 1110px) {
	.specialists-grid {
		grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	}

	.specialist-info {
		margin-left: 15px;
		margin-top: 15px;
	}

	.specialist-description {
		margin-left: 15px;
	}
}

@media (max-width: 1024px) {
	.specialists-grid {
		grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
	}

	.specialists-grid {
		justify-items: center;
	}

	.specialist-info {
		margin-left: 30px;
		margin-top: 30px;
	}

	.specialist-description {
		margin-left: 30px;
	}

	.specialists-layout {
		flex-direction: column;
	}

	.filters-sidebar {
		width: 100%;
		margin-bottom: 24px;
	}

	.specialists-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
	}
}

@media (max-width: 640px) {
	.specialists-grid {
		grid-template-columns: 1fr;
		justify-items: center;
		align-items: center;
	}
}

/* Custom Select Overrides for Filters */
.filters-sidebar .custom-select-wrapper {
	position: relative;
	width: 100%;
}
