* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
}

body {
  background-color: #f8fafc;
  color: #1e293b;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
}

.app-container {
  width: 100%;
  max-width: 750px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.language-selector {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.lang-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  color: #64748b;
  transition: all 0.2s;
}

.lang-btn.active,
.lang-btn:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.main-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
}

.main-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0f172a;
}

.main-header p {
  color: #64748b;
  font-size: 1rem;
}

.section-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.section-card h2 {
  font-size: 1.4rem;
  color: #0f172a;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 10px;
}

.quiz-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
}

.quiz-item:last-child {
  border-bottom: none;
}

.quiz-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1e293b;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.option-item:hover {
  background: #f8fafc;
}

.project-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  margin-bottom: 12px;
}

.project-item h3 {
  font-size: 1.1rem;
  color: #0f172a;
}

.project-item p {
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.5;
}

.primary-btn {
  background: #0f172a;
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  align-self: flex-start;
}

.primary-btn:hover {
  background: #1e293b;
}

.result-box {
  padding: 14px;
  border-radius: 8px;
  font-weight: 600;
  display: none;
}

.border-top-accent {
  border-top: 4px solid #2563eb;
}

.rules-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  padding: 16px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rules-box p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #334155;
}

.rules-box strong {
  color: #0f172a;
}
