.random-sections {
	margin: 60px 0;
}


.random-sections-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.title-random-sections {
	margin: -50px 0 50px 0;
}

.random-section-card {
	background: #fff;
	border: 2px solid #e0e0e0;
	border-radius: 0;
	overflow: hidden;
	transition: all 0.3s ease;
	text-decoration: none;
	display: flex;
	flex-direction: column;
}

.random-section-image {
	width: 100%;
	height: 220px;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.random-section-image:hover {
	transform: scale(1.01);
}

.random-section-title {
	text-align: center;
	font-size: 24px;
	font-weight: 400;
	margin: 5px 0 15px;
	color: #616161;
	line-height: 1.3;
	flex-grow: 1;
	line-height: 25.71px;
}


.random-section-button {
	font-size: 12px;
	display: inline-block;
	background: #E4054C;
	color: white;
	padding: 12px 10px;
	border-radius: 2px;
	font-weight: 700;
	transition: all 0.3s ease;
	margin-top: 10px;
	margin-bottom: 20px;
	border: 2px solid #E4054C;
	text-transform: uppercase;
	width: 200px;
	text-align: center;
	cursor: pointer;
	margin-left: auto;
	margin-right: auto;
	min-width: 220px;
}

.random-section-card:hover {
	text-decoration: none !important;
}


.random-section-card:hover .random-section-button {
	background: white;
	color: #E4054C;
	border: 2px solid #E4054C;
}

/* Слайдер для мобилки */
.random-sections-slider {
	display: none;
	position: relative;
	overflow: hidden;
}

.slider-container {
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scroll-behavior: smooth;
	cursor: grab;
	scrollbar-width: none;
}

.slider-container::-webkit-scrollbar {
	display: none;
}

.slider-track {
	display: flex;
	gap: 20px;
	padding: 10px 0;
}

.slider-slide {
	flex: 0 0 100%;
	scroll-snap-align: center;
	scroll-snap-stop: always;
}

.slider-slide .random-section-card {
	margin: 0;
	max-width: 400px;
	margin-left: auto;
	margin-right: auto;
}

@media (max-width: 767px) {
	.title-random-sections {
		margin: -100px 0 50px 0;
	}

	.random-sections-grid {
		display: none;
	}

	.random-sections-slider {
		display: block;
	}

	.random-sections-title {
		font-size: 24px;
		margin-bottom: 30px;
	}
}

@media (min-width: 768px) and (max-width: 991px) {
	.random-sections-grid {
		gap: 20px;
	}

	.random-section-title {
		font-size: 16px;
		padding: 15px 15px 0 15px;
	}

	.random-section-image {
		height: 180px;
	}

	.random-section-button {
		width: 180px;
		padding: 10px 20px;
		font-size: 11px;
	}
}