* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f7f5ef;
  color: #202d30;
  font:
    16px/1.6 system-ui,
    sans-serif;
}
header,
main,
footer {
  max-width: 1120px;
  margin: auto;
  padding: 24px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
header nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.brand {
  font-size: 26px;
  font-weight: 800;
  text-decoration: none;
}
.brand span {
  background: #f2a13d;
  padding: 3px 9px;
  border-radius: 8px;
  font-size: 16px;
}
a {
  color: inherit;
}
button,
.button {
  border: 0;
  border-radius: 14px;
  background: #202d30;
  color: white;
  display: inline-block;
  padding: 13px 22px;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
button:disabled {
  opacity: 0.6;
}
h1 {
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.2;
  margin: 16px 0 24px;
}
h2 {
  font-size: 22px;
  line-height: 1.35;
}
h2 a {
  text-decoration: none;
}
.card h3 {
  font-size: 21px;
  line-height: 1.4;
  margin: 12px 0;
}
.card h3 a {
  text-decoration: none;
}
.cardFooter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.cardFooter a {
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.card {
  display: flex;
  flex-direction: column;
}
.feedHeading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.feedHeading h2 {
  margin: 14px 0 0;
}
.feedHeading span {
  color: #586667;
  white-space: nowrap;
}
.empty {
  grid-column: 1/-1;
}
a:hover {
  text-decoration: underline;
}
.hero {
  padding: 12px 0 24px;
  max-width: 920px;
}
.hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 10px 0 14px;
}
.hero p {
  font-size: 17px;
}
.eyebrow {
  font-size: 13px !important;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: #42685e;
}
.filters {
  display: flex;
  gap: 12px;
  align-items: end;
  margin: 20px 0 30px;
}
label {
  display: block;
  font-weight: 600;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  margin: 6px 0 0;
  border: 1px solid #cec9be;
  border-radius: 12px;
  padding: 12px;
  font: inherit;
  background: white;
  color: #202d30;
}
.filters label:first-child {
  flex: 1;
}
textarea {
  min-height: 140px;
  resize: vertical;
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.card,
.detail,
.respond {
  border: 1px solid #dcd8ce;
  border-radius: 20px;
  padding: 26px;
  background: white;
  overflow-wrap: anywhere;
}
.card.need {
  background: #edf3f8;
}
.card.offer {
  background: #eaf4ed;
}
.badge {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #31576d;
}
.offer .badge {
  color: #315d45;
}
.card p {
  color: #566264;
}
.card small,
.detail small {
  color: #5b6767;
}
.detail {
  margin-top: 24px;
}
.detail h1 {
  font-size: clamp(26px, 4vw, 38px);
}
.description {
  white-space: pre-wrap;
  font-size: 19px;
  margin: 26px 0;
}
.respond {
  margin-top: 20px;
  background: #eee9df;
}
.respond button {
  margin-top: 16px;
}
.pagination {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-top: 28px;
}
footer {
  margin-top: 35px;
  border-top: 1px solid #ddd;
  color: #586667;
  font-size: 14px;
}
footer a {
  display: block;
}
.empty {
  padding: 20px;
}
.location {
  font-weight: 700;
}
#publicStatus {
  color: #315d45;
}
[hidden] {
  display: none !important;
}
@media (max-width: 650px) {
  header,
  main,
  footer {
    padding: 18px;
  }
  header {
    flex-wrap: wrap;
  }
  header nav {
    gap: 12px;
    font-size: 14px;
  }
  .hero {
    padding: 4px 0 18px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .filters {
    display: grid;
  }
  .card,
  .detail,
  .respond {
    padding: 21px;
  }
  .button,
  button {
    min-height: 44px;
  }
  .respond .button {
    width: 100%;
    text-align: center;
  }
}
