* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #f5f7fa; }

.container { max-width: 1000px; margin: 0 auto; padding: 20px; }

.header {
	text-align: center;
	margin-bottom: 30px;
	padding: 30px;
	background: linear-gradient(135deg, #4169E1, #667eea);
	color: white;
	border-radius: 15px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.quiz-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	gap: 25px;
	margin-bottom: 30px;
}

.quiz-card {
	background: white;
	border-radius: 15px;
	padding: 25px;
	box-shadow: 0 8px 25px rgba(0,0,0,0.1);
	transition: transform 0.3s, box-shadow 0.3s;
}

.quiz-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.quiz-header {
	display: flex;
	align-items: center;
	margin-bottom: 15px;
}

.quiz-icon {
	font-size: 24px;
	color: #4169E1;
	margin-right: 15px;
}

.quiz-title {
	font-size: 20px;
	font-weight: 600;
	color: #333;
}

.quiz-meta {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
	margin: 15px 0;
	padding: 15px;
	background: #f8f9fa;
	border-radius: 10px;
}

.meta-item {
	text-align: center;
}

.meta-value {
	font-size: 20px;
	font-weight: bold;
	color: #4169E1;
}

.meta-label {
	font-size: 12px;
	color: #666;
	text-transform: uppercase;
}

.quiz-description {
	color: #666;
	margin-bottom: 20px;
	line-height: 1.5;
}

.start-btn {
	display: block;
	width: 100%;
	padding: 15px;
	background: #4169E1;
	color: white;
	text-decoration: none;
	border-radius: 10px;
	text-align: center;
	font-weight: 600;
	transition: background 0.3s;
}

.start-btn:hover {
	background: #2c54d4;
}

.quiz-interface {
	background: white;
	border-radius: 15px;
	padding: 30px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.quiz-progress {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 30px;
	padding: 20px;
	background: #f8f9fa;
	border-radius: 10px;
}

.progress-bar {
	flex: 1;
	height: 8px;
	background: #e9ecef;
	border-radius: 4px;
	margin: 0 20px;
	overflow: hidden;
}

.progress-fill {
	height: 100%;
	background: #4169E1;
	border-radius: 4px;
	transition: width 0.3s;
}

.timer {
	font-size: 24px;
	font-weight: bold;
	color: #4169E1;
	display: flex;
	align-items: center;
	gap: 10px;
}

.timer.warning { color: #ffc107; }
.timer.danger { color: #dc3545; }

.question-container {
	margin-bottom: 30px;
}

.question-text {
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 25px;
	color: #333;
	line-height: 1.6;
}

.options-container {
	margin: 20px 0;
}

.option-item {
	margin: 12px 0;
	position: relative;
}

.option-item input[type="radio"] {
	display: none;
}

.option-label {
	display: block;
	padding: 15px 20px;
	background: #f8f9fa;
	border: 2px solid #e9ecef;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	padding-left: 50px;
}

.option-label:hover {
	background: #e3f2fd;
	border-color: #4169E1;
}

.option-item input[type="radio"]:checked + .option-label {
	background: #4169E1;
	color: white;
	border-color: #4169E1;
}

.option-label::before {
	content: '';
	position: absolute;
	left: 15px;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	border: 2px solid #ccc;
	border-radius: 50%;
	background: white;
}

.option-item input[type="radio"]:checked + .option-label::before {
	background: white;
	border-color: white;
}

.option-item input[type="radio"]:checked + .option-label::after {
	content: '';
	position: absolute;
	left: 20px;
	top: 50%;
	transform: translateY(-50%);
	width: 10px;
	height: 10px;
	background: #4169E1;
	border-radius: 50%;
}

.navigation-buttons {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 30px;
}

.btn {
	padding: 12px 24px;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s;
}

.btn-primary {
	background: #4169E1;
	color: white;
}

.btn-primary:hover {
	background: #2c54d4;
}

.btn-secondary {
	background: #6c757d;
	color: white;
}

.btn-secondary:hover {
	background: #545b62;
}

.btn-success {
	background: #28a745;
	color: white;
}

.btn-success:hover {
	background: #1e7e34;
}

.btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.guest-form {
	background: #f8f9fa;
	padding: 20px;
	border-radius: 10px;
	margin-bottom: 20px;
}

.guest-form input {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 5px;
	margin-top: 5px;
}

@media (max-width: 768px) {
	.quiz-grid {
		grid-template-columns: 1fr;
	}
	
	.quiz-meta {
		grid-template-columns: 1fr;
	}
	
	.quiz-progress {
		flex-direction: column;
		gap: 15px;
	}
	
	.progress-bar {
		margin: 0;
		order: -1;
	}
	
	.navigation-buttons {
		flex-direction: column;
		gap: 15px;
	}
	
	.navigation-buttons > div {
		width: 100%;
	}
	
	.btn {
		width: 100%;
	}
}