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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background: #f7f4ee;
  color: #222;
  line-height: 1.6;
}

.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #e8ddd0, #f7f4ee);
  padding: 20px 60px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 80px;
}

.logo {
  font-size: 28px;
  color: #2f2424;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: #2f2424;
  font-weight: bold;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #8b5e3c;
}

.hero-content {
  max-width: 760px;
  margin: 100px auto;
  text-align: center;
}

.hero-content h2 {
  font-size: 48px;
  color: #2f2424;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 20px;
  color: #4d3d3d;
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  background: #8b5e3c;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 12px 26px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
  text-decoration: none;
}

.btn:hover {
  background: #6e472b;
}

.section {
  padding: 70px 60px;
}

.section-title {
  text-align: center;
  font-size: 34px;
  color: #2f2424;
  margin-bottom: 40px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.card h3 {
  color: #8b5e3c;
  margin-bottom: 12px;
}

.test-section {
  background: #efe7dc;
}

.quiz-form {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
}

.question {
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e5ddd3;
}

.question h3 {
  margin-bottom: 14px;
  font-size: 20px;
  color: #2f2424;
}

.question label {
  display: block;
  margin-bottom: 10px;
  cursor: pointer;
  color: #444;
}

.question input[type="radio"] {
  margin-right: 10px;
}

.results-section {
  background: #f8f5ef;
}

.results-box {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.result-card {
  background: #f8f3ec;
  border-left: 5px solid #8b5e3c;
  padding: 18px;
  border-radius: 12px;
}

.result-card h3 {
  margin-bottom: 10px;
  color: #2f2424;
}

.result-card p {
  color: #444;
}

.small-note {
  margin-top: 20px;
  font-size: 14px;
  color: #666;
}

.footer {
  background: #2f2424;
  color: white;
  text-align: center;
  padding: 22px;
}

@media (max-width: 768px) {
  .hero {
    padding: 20px;
  }

  .navbar {
    flex-direction: column;
    gap: 20px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-content h2 {
    font-size: 34px;
  }

  .hero-content p {
    font-size: 18px;
  }

  .section {
    padding: 50px 20px;
  }

  .quiz-form,
  .results-box {
    padding: 20px;
  }
}
