/* === Общий контейнер карточек === */
.manufacturers__items {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
	padding: 20px;
	margin: 0 auto;
	max-width: 1400px;
}

/* === Отдельная карточка производителя === */
.manufacturers__item {
	display: flex;
	flex-direction: column;
	background-color: #ffffff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	height: 100%; /* Важно для выравнивания по высоте */
}

.manufacturers__item:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* === Название производителя === */
.manufacturers__name {
	font-size: 18px;
	font-weight: 600;
	color: #1f2937;
	text-align: center;
	padding: 16px 12px 12px;
	margin: 0;
	flex-shrink: 0;
}

/* === Изображение: фиксированный размер 250×250 px, обрезка и центровка === */
.manufacturers__img {
	width: 250px;
	height: 250px;
	object-fit: cover;        /* Обрезает изображение, сохраняя пропорции */
	object-position: center;  /* Центрирует изображение */
	display: block;
	margin: 16px auto;        /* По центру, с отступом сверху и снизу */
	border-radius: 10px;
	background-color: #f3f4f6;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* === Кнопка: всегда внизу карточки === */
.btn {
	display: block;
	width: calc(100% - 32px);
	margin: 0 auto 16px;
	padding: 12px 0;
	font-size: 15px;
	font-weight: 500;
	text-align: center;
	color: #3b82f6;
	background-color: #eff6ff;
	border: 1px solid #93c5fd;
	border-radius: 8px;
	text-decoration: none;
	transition: all 0.2s ease;
	flex-shrink: 0;
}

.btn:hover {
	background-color: #dbeafe;
	border-color: #60a5fa;
	color: #1e40af;
	transform: translateY(-1px);
}

.btn:active {
	background-color: #bfdbfe;
	transform: translateY(0);
}

/* === Пагинация — центрирование === */
.pagination {
	margin-top: 40px;
	text-align: center;
	padding: 0 20px;
}

.pagination .navigation {
	display: inline-flex;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: center;
}

.pagination a,
.pagination .current-page {
	display: inline-block;
	padding: 8px 12px;
	min-width: 36px;
	text-decoration: none;
	font-size: 14px;
	border-radius: 6px;
	color: #4b5563;
	border: 1px solid #d1d5db;
}

.pagination a:hover {
	background-color: #f3f4f6;
	border-color: #9ca3af;
}

.pagination .current-page {
	background-color: #3b82f6;
	color: white;
	border: 1px solid #3b82f6;
}

/* === Адаптив: планшет (до 1199px) === */
@media (max-width: 1199px) {
	.manufacturers__items {
		grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
		gap: 20px;
	}
}

/* === Адаптив: мобильные (до 767px) === */
@media (max-width: 767px) {
	.manufacturers__items {
		grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
		gap: 16px;
		padding: 16px;
	}

	.manufacturers__name {
		font-size: 17px;
		padding: 14px 10px 10px;
	}

	.manufacturers__img {
		width: 230px;
		height: 230px;
	}

	.btn {
		width: calc(100% - 24px);
		padding: 10px 0;
		font-size: 14px;
	}
}

/* === Адаптив: маленькие экраны (до 575px) === */
@media (max-width: 575px) {
	.manufacturers__items {
		grid-template-columns: 1fr; /* Одна карточка в ряду */
		gap: 16px;
	}

	.manufacturers__img {
		width: 210px;
		height: 210px;
	}

	.pagination {
		padding: 0 12px;
	}
}
