
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #222;
  background: #f7f7f5;
  line-height: 1.6;
}
header, footer {
  background: #cbcbcb;
  color: #222;
  padding: 14px 8%;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header a, footer a {
  color: #222;
  text-decoration: none;
}
.logo {
  font-size: 1.2rem;
  font-weight: bold;
}
nav a {
  margin-left: 24px;
  font-size: .9rem;
}
main {
  max-width: 1000px;
  margin: auto;
  padding: 80px 24px;
}
.hero {
  max-width: 700px;
}
h1 {
  font-size: 3.5rem;
  line-height: 1;
  margin: 0 0 24px;
}
h2 { margin-top: 0; }
.muted { color: #68716d; }
.button {
  display: inline-block;
  background: #d8e6dc;
  color: #18231f;
  padding: 12px 18px;
  border-radius: 5px;
  text-decoration: none;
  margin-top: 15px;
}

.links {
  display: grid;
  gap: 12px;
  margin-top: 45px;
}
.link {
  display: flex;
  justify-content: space-between;
  background: white;
  padding: 20px;
  border: 1px solid #e4e5e1;
  border-radius: 7px;
  text-decoration: none;
  color: #222;
}
.link:hover {
  background: #edf2ed;
}


.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 55px;
}
.card {
  background: white;
  padding: 24px;
  border: 1px solid #e4e5e1;
  border-radius: 8px;
}
footer {
  margin-top: 60px;
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  align-items: center;
}


@media (max-width: 700px) {
  header {
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
  }

  nav {
    display: flex;
    gap: 10px;
  }

  nav a {
    margin-left: 0;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
    gap: 8px;
  }
}
