/* ASIC media order: BASE > max-width DESC (cascade) > min-width ASC > other.
   Scale: phone<=575 | tablet<=991 | laptop 992-1199 | laptopLarge 1200-1439 | desktop>=1440 | wide>=1680 | header<=1023/>=1024
   Source: breakpoints.css */

/* === BASE === */
/* Компонент "Популярные производители" - для фильтр-страниц /asic-miners/ */

.catalog-section.catalog-manufacturers {
	margin: 60px 0;
	max-width: 100%;
	overflow-x: clip;
}

.catalog-section-title {
	margin: 0;
	font-weight: 700;
	font-size: 40px;
	line-height: 1.2;
	color: #38373f;
}

.catalog-section .swiper {
	--swiper-pagination-bottom: 0px;
	--swiper-theme-color: #fc8416;
	--swiper-pagination-bullet-inactive-color: #c7ced4;
	--swiper-pagination-bullet-inactive-opacity: 1;
}

.catalog-section .swiper-pagination-bullet:focus-visible {
	outline: 2px solid #ff7316;
	outline-offset: 2px;
}

.catalog-swiper-buttons-nav {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
}

.catalog-swiper-btn {
	min-width: 46px;
	min-height: 46px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	transition: opacity 0.3s ease;
	background: linear-gradient(180deg, #f99515 0%, #ff7316 100%);
	color: #ffffff;
}

.catalog-swiper-btn:hover {
	opacity: 0.88;
}

.catalog-swiper-btn:focus-visible {
	outline: 2px solid #ff7316;
	outline-offset: 2px;
}

.catalog-swiper-btn.swiper-button-disabled {
	background: #ffffff;
	color: #c6c6cb;
	border: 1px solid #e5e7e8;
	opacity: 1;
	pointer-events: none;
}

.swiper-horizontal > .swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal,
.swiper-pagination-custom,
.swiper-pagination-fraction {
	bottom: 0;
}

.catalog-section .swiper-pagination-bullet {
	border: 0;
	margin: 0 4px !important;
	padding: 14px 10px;
	width: 12px;
	height: 12px;
	box-sizing: content-box;
	background-clip: content-box;
	cursor: pointer;
	flex: 0 0 auto;
}

.catalog-section .swiper-pagination,
.catalog-section .swiper-pagination-bullets {
	max-width: 100%;
	overflow: hidden;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
}

.catalog-section .swiper-pagination-bullet-active {
	--swiper-theme-color: #c45108;
}

.catalog-manufacturers {
	color: #38373f;
}

.catalog-manufacturers .container {
	display: flex;
	flex-direction: column;
	gap: 35px;
}

.catalog-manufacturers__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 20px 0;
}

.catalog-manufacturers__subtitle {
	width: 100%;
	font-weight: 500;
	font-size: 16px;
	line-height: 1.4;
	color: #38373f;
}

.catalog-manufacturers__subtitle p {
	margin: 0 0 0.75em;
}

.catalog-manufacturers__subtitle p:last-child {
	margin-bottom: 0;
}

.catalog-manufacturers__viewport {
	min-width: 0;
}

.catalog-manufacturers__swiper.swiper {
	width: 100%;
	min-width: 0;
	overflow: hidden;
	padding-bottom: 35px;
}

.catalog-manufacturers__swiper .swiper-slide {
	height: auto;
}

.catalog-manufacturers__card {
	position: relative;
	height: 200px;
	border-radius: 40px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px;
	background: radial-gradient(88.26% 66.95% at 50% 50%, #fff 0%, #e2e2e2 90%);
}

a.catalog-manufacturers__card {
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}

.catalog-manufacturers__card::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(-82deg, #f99515 7.42%, #ff7316 112.6%);
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.catalog-manufacturers__card:hover::before {
	opacity: 1;
}

.catalog-manufacturers__logo {
	position: relative;
	z-index: 1;
	display: block;
	max-width: 100%;
	height: auto;
	opacity: 0.75;
	object-fit: contain;
	filter: none;
	transition:
		opacity 0.3s ease,
		filter 0.3s ease;
}

.catalog-manufacturers__card:hover img {
	filter: brightness(0) invert(1);
}

.catalog-manufacturers__pagination {
	display: none;
}

/* === HEADER_MOBILE (max: 1023px) === */
@media (max-width: 1023px) {
	.catalog-section-title {
		font-size: 32px;
	}

	.catalog-manufacturers .catalog-swiper-buttons-nav {
		display: none;
	}

	.catalog-manufacturers__pagination {
		display: block;
	}

	.catalog-manufacturers__card {
		height: 94px;
		border-radius: 18px;
	}

	.catalog-manufacturers .container {
		gap: 30px;
	}

	.catalog-manufacturers__top {
		padding: 0;
		justify-content: center;
	}

	.catalog-manufacturers__subtitle {
		font-size: 14px;
	}
}

/* === TABLET (max: 991px) === */
@media (max-width: 576px) {
	.catalog-section-title {
		font-size: 24px;
	}

	.catalog-manufacturers .container {
		gap: 20px;
	}

	.catalog-manufacturers__card {
		height: 107px;
		border-radius: 20px;
		padding: 32px;
	}

	.catalog-manufacturers__top {
		max-width: 240px;
		text-align: center;
		align-self: center;
	}
}

/* === HEADER_DESKTOP (min: 1024px) === */
@media (min-width: 1024px) {
	.catalog-manufacturers__swiper.swiper {
		padding-bottom: 0;
	}

	.catalog-manufacturers__swiper .swiper-slide {
		width: 200px;
	}
}
@media (min-width: 1100px) {
	.catalog-manufacturers__card {
		min-height: 44px;
	}
}

/* === HOVER === */
@media (hover: hover) {
	.catalog-manufacturers__card:hover::before {
		opacity: 1;
	}

	.catalog-manufacturers__card:hover img {
		filter: brightness(0) invert(1);
	}
}
