#tasks {
  background-attachment: fixed;
  background-image: url("../img/teppen.jpg");
  background-size: cover;
  background-position: center;
  padding: 60px 20px 100px;
}

#tasks .container {
  max-width: 960px;
  margin: 0 auto;
  background-color: rgba(255, 255, 244, 0.9);
  border-radius: 16px;
  padding: 48px 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

#tasks .title {
  text-align: center;
  margin-bottom: 32px;
}

#tasks .title > h2 {
  display: inline-block;
  border-bottom: 2px solid #ff4040;
  font-size: 2em;
  padding: 0 12px 8px;
}

#tasks .description {
  margin: 0 auto 40px;
  max-width: 720px;
  font-size: 1.05em;
  line-height: 1.8;
  text-align: center;
}

#tasks .tasks-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

#tasks .task-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#tasks .task-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

#tasks .task-card > h3 {
  margin-bottom: 12px;
  font-size: 1.35em;
  border-left: 4px solid #ff4040;
  padding-left: 12px;
}

#tasks .task-card > p {
  line-height: 1.8;
  margin: 0;
}

#tasks .note {
  margin-top: 40px;
  padding: 20px 24px;
  background-color: rgba(255, 64, 64, 0.08);
  border-radius: 12px;
  text-align: center;
  font-size: 0.95em;
  line-height: 1.8;
  color: #333;
}

@media screen and (max-width: 1024px) {
  #tasks .tasks-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 680px) {
  #tasks {
    padding: 40px 16px 60px;
  }

  #tasks .container {
    padding: 32px 24px;
  }

  #tasks .tasks-grid {
    grid-template-columns: 1fr;
  }

  #tasks .task-card {
    padding: 24px 20px;
  }
}