:root {
  --bg: #f3f4ef;
  --card: #ffffff;
  --text: #111111;
  --muted: #5c5c57;
  --line: #dadad2;
  --accent: #1b6b52;
  --accent-strong: #14503e;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, #e6ebe2 0, transparent 36%),
    radial-gradient(circle at 100% 100%, #e8ece4 0, transparent 42%),
    var(--bg);
  min-height: 100vh;
}

.layout {
  width: min(1080px, 92vw);
  margin: 0 auto;
  padding: 2.5rem 0 3rem;
}

.header h1 {
  margin: 0.25rem 0 0.35rem;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.subtitle {
  margin: 0;
  color: var(--muted);
}

.search {
  display: block;
  margin-top: 1.2rem;
}

.search input {
  width: min(460px, 100%);
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.8rem 1rem;
  font-size: 0.97rem;
  outline: none;
}

.search input:focus {
  border-color: #b2c4b7;
  box-shadow: 0 0 0 3px #dae5de;
}

.section-block {
  margin-top: 1.4rem;
}

.section-title {
  margin: 0 0 0.8rem;
  font-size: 1rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-height: 178px;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.card h2 {
  margin: 0;
  font-size: 1.04rem;
  letter-spacing: -0.01em;
}

.tag {
  border: 1px solid #cfded4;
  color: var(--accent-strong);
  border-radius: 999px;
  padding: 0.22rem 0.56rem;
  font-size: 0.74rem;
  white-space: nowrap;
  font-weight: 600;
}

.description {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.actions {
  margin-top: auto;
  display: flex;
  gap: 0.55rem;
}

.btn {
  text-decoration: none;
  border-radius: 10px;
  padding: 0.58rem 0.8rem;
  font-size: 0.86rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
}

.btn.primary:hover {
  background: #165b45;
}

.btn.disabled {
  pointer-events: none;
  opacity: 0.45;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .layout {
    padding-top: 1.8rem;
  }

  .actions {
    flex-direction: column;
  }

  .btn {
    text-align: center;
  }
}
