/* Основная секция кейсов */
.cases-section {
	margin: 40px 0 80px 0;
}

.cases-section__container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.cases-subtitle {
	font-size: 14px;
	font-weight: 400;
	text-align: left;
	margin-bottom: 50px;
	color: white;
	line-height: 1.5;
}

.cases-section__title {
	font-size: 32px;
	font-weight: 700;
	text-align: center;
	margin-bottom: 40px;
	color: #1a1a1a;
}

/* Фильтры */
.cases-filters {
	display: flex;
	justify-content: flex-start;
	gap: 12px;
	margin-bottom: 50px;
	flex-wrap: wrap;
}

.cases-filter-btn {
	padding: 8px 16px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	background: rgba(255, 255, 255, 0.1);
	color: white;
	border-radius: 8px;
	font-weight: 500;
	font-size: 12px;
	cursor: pointer;
	transition: all 0.3s ease;
	white-space: nowrap;
	text-align: center;
	min-width: fit-content;
	backdrop-filter: blur(10px);
}

.cases-filter-btn:hover {
	background: rgba(255, 255, 255, 0.2);
	border-color: rgba(255, 255, 255, 0.5);
	transform: translateY(-1px);
}

.cases-filter-btn.active {
	background: rgba(255, 255, 255, 0.9);
	color: #1a1a1a;
	border-color: rgba(255, 255, 255, 0.9);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Сетка кейсов */
.cases-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

/* Карточки кейсов */
.case-card {
	background: white;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
	position: relative;
	display: flex;
	flex-direction: column;
}

.case-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Превью карточки */
.case-card__preview {
	position: relative;
	height: 200px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.case-card__preview-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 1;
}

/* Десктопная версия */
.case-card__desktop {
	position: absolute;
	top: 15px;
	left: 15px;
	width: 180px;
	height: 110px;
	background: white;
	border-radius: 8px;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
	overflow: hidden;
	z-index: 2;
}

.case-card__desktop-content {
	padding: 15px;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.case-card__navbar {
	display: flex;
	gap: 15px;
	margin-bottom: 15px;
	font-size: 11px;
	color: #666;
}

.case-card__navbar span {
	padding: 4px 8px;
	background: #f5f5f5;
	border-radius: 4px;
}

.case-card__hero h3 {
	font-size: 14px;
	font-weight: 600;
	color: #333;
	margin: 0 0 8px 0;
	line-height: 1.3;
}

.case-card__hero p {
	font-size: 11px;
	color: #666;
	margin: 0 0 10px 0;
}

.case-card__hero button {
	background: #6B46C1;
	color: white;
	border: none;
	padding: 6px 12px;
	border-radius: 4px;
	font-size: 10px;
	cursor: pointer;
}

/* Мобильная версия */
.case-card__mobile {
	position: absolute;
	top: 40px;
	right: 15px;
	width: 55px;
	height: 90px;
	background: white;
	border-radius: 12px;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
	overflow: hidden;
	z-index: 2;
}

.case-card__mobile-content {
	padding: 12px;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.case-card__mobile-nav {
	font-size: 16px;
	color: #666;
	margin-bottom: 10px;
}

.case-card__mobile-hero h4 {
	font-size: 12px;
	font-weight: 600;
	color: #333;
	margin: 0 0 5px 0;
}

.case-card__mobile-hero p {
	font-size: 9px;
	color: #666;
	margin: 0;
}

/* Информация о кейсе */
.case-card__info {
	padding: 20px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.case-card__tag {
	color: white;
	padding: 3px 8px;
	border-radius: 8px;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	margin-bottom: 12px;
	display: inline-block;
	width: fit-content;
}

/* Цвета тегов для разных услуг */
.case-card[data-category="shopify"] .case-card__tag {
	background: #10B981; /* Зеленый для Shopify */
}

.case-card[data-category="tiktok"] .case-card__tag {
	background: #EF4444; /* Красный для TikTok */
}

.case-card[data-category="yandex"] .case-card__tag {
	background: #F59E0B; /* Оранжевый для ЯндексKIT */
}

.case-card[data-category="target"] .case-card__tag {
	background: #8B5CF6; /* Фиолетовый для таргета */
}

.case-card[data-category="context"] .case-card__tag {
	background: #06B6D4; /* Голубой для контекстной рекламы */
}

.case-card[data-category="seo"] .case-card__tag {
	background: #EC4899; /* Розовый для SEO */
}

.case-card__title {
	font-size: 18px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 10px 0;
}

.case-card__description {
	color: #666;
	font-size: 14px;
	line-height: 1.5;
	margin: 0 0 20px 0;
	flex-grow: 1;
}

.case-card__btn {
	background: #1F2937;
	color: white;
	border: none;
	padding: 12px 24px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	width: 100%;
	margin-top: auto;
}

.case-card__btn:hover {
	background: #111827;
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(31, 41, 55, 0.3);
}

/* Адаптивность */
@media (max-width: 1024px) {
	.cases-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
}

@media (max-width: 768px) {
	.cases-subtitle {
		font-size: 13px;
		margin-bottom: 40px;
	}
	
	.cases-section__title {
		font-size: 28px;
		margin-bottom: 30px;
	}
	
	.cases-filters {
		gap: 8px;
		margin-bottom: 40px;
	}
	
	.cases-filter-btn {
		padding: 6px 12px;
		font-size: 11px;
	}
	
	.cases-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	
	.case-card__preview {
		height: 240px;
	}
	
	.case-card__desktop {
		width: 200px;
		height: 120px;
	}
	
	.case-card__mobile {
		width: 60px;
		height: 100px;
		top: 50px;
	}
}

@media (max-width: 480px) {
	.cases-section__container {
		padding: 0 15px;
	}
	
	.cases-filters {
		flex-direction: column;
		align-items: center;
		gap: 8px;
	}
	
	.cases-filter-btn {
		width: 100%;
		max-width: 200px;
	}
	
	.case-card__preview {
		height: 200px;
	}
	
	.case-card__desktop {
		width: 160px;
		height: 100px;
	}
	
	.case-card__mobile {
		width: 50px;
		height: 80px;
		top: 40px;
	}
	
	.case-card__info {
		padding: 20px;
	}
	
	.case-card__tag {
		font-size: 9px;
		padding: 2px 6px;
	}
	
	.case-card__btn {
		padding: 10px 20px;
		font-size: 13px;
	}
}

