:root {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1f2a37;
  background: #f4f6fb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f4f6fb;
  color: #1f2a37;
}

header {
  background: linear-gradient(120deg, #0f172a, #1d4ed8);
  color: #fff;
  padding: 20px 20px 80px;
  text-align: center;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto 20px;
  padding: 0 0 12px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.brand-logo {
  height: 48px;
  width: auto;
  display: block;
}

.top-nav-back {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.02em;
}

header h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

header p {
  margin: 12px auto 0;
  max-width: 620px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

nav {
  margin-top: 20px;
}

nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 600;
}

main {
  max-width: 1100px;
  margin: -40px auto 60px;
  padding: 0 clamp(16px, 4vw, 40px) 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.list-section {
  background: #fff;
  border-radius: 24px;
  padding: clamp(24px, 5vw, 42px);
  box-shadow: 0 25px 55px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading span {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: #6c7a92;
}

.section-heading h2 {
  margin: 6px 0 12px;
  font-size: clamp(1.9rem, 4vw, 2.4rem);
}

.section-heading p {
  margin: 0;
  color: #6c7a92;
  line-height: 1.6;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  justify-content: flex-start;
  justify-items: start;
}

.card {
  background: #fff;
  border-radius: 22px;
  padding: 18px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 25px 55px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  min-height: 480px;
  width: min(100%, 320px);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 65px rgba(15, 23, 42, 0.18);
}

.card figure {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  padding: 12px;
}

.card img {
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}

.card h3 {
  margin: 16px 0 8px;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: #6c7a92;
  font-size: 0.95rem;
  line-height: 1.5;
  flex-grow: 1;
}

.card-cta {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  background: linear-gradient(120deg, #ff6b00, #ff922b);
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  width: 100%;
}

.empty-state {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  border: 1px dashed #cbd5f5;
  text-align: center;
  color: #6c7a92;
  font-weight: 600;
}

footer {
  text-align: center;
  padding: 20px;
  color: #6c7a92;
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  header {
    padding: 24px 18px 60px;
    text-align: left;
  }

  .top-nav {
    flex-direction: column;
    gap: 12px;
  }

  main {
    margin: -32px auto 48px;
    padding: 0 12px 32px;
    gap: 24px;
  }

  .list-section {
    border-radius: 18px;
    padding: 20px;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .card {
    width: 100%;
    min-height: auto;
  }

  .card figure {
    height: 200px;
  }

  .card-cta {
    margin-top: 20px;
  }
}
