/* Глобальные стили для веб-версии PWA */

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html, body {
	font-family: 'Comfortaa', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	min-height: 100%;
	overflow-x: hidden;
	overflow-y: auto;
}

/* Градиентный фон для всего приложения */
body {
	background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e22ce 100%);
	background-attachment: fixed;
	min-height: 100vh;
}

/* Оптимизация для мобильных устройств */
@media (max-width: 768px) {
	html {
		font-size: 14px;
	}

	/* Предотвращение масштабирования на iOS */
	input, select, textarea {
		font-size: 16px !important;
	}

	/* Адаптивные карточки на мобильных */
	.cards-container {
		display: flex;
		flex-direction: column;
		gap: 15px;
	}

	.card-item {
		width: 100% !important;
		min-height: 160px;
	}
}

@media (max-width: 480px) {
	/* Еще меньшие экраны */
	.feature-card {
		width: 100% !important;
		margin-bottom: 10px;
	}
}

/* Стили для скроллбаров */
::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.1);
	border-radius: 10px;
}

::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.3);
	border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
	background: rgba(255, 255, 255, 0.5);
}

/* Анимации для PWA */
@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes slideUp {
	from {
		transform: translateY(20px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

@keyframes pulse {
	0%, 100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.05);
	}
}

/* Классы для анимаций */
.animate-fadeIn {
	animation: fadeIn 0.8s ease-out;
}

.animate-slideUp {
	animation: slideUp 0.6s ease-out;
}

.animate-pulse {
	animation: pulse 2s ease-in-out infinite;
}

/* Оптимизация производительности */
.will-change-transform {
	will-change: transform;
}

.will-change-opacity {
	will-change: opacity;
}

/* Touch feedback для мобильных */
button,
a,
.touchable {
	-webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
	touch-action: manipulation;
}

/* Предотвращение выделения текста на мобильных */
.no-select {
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}