:root {
  --bg: #f3f7ff;
  --bg-card: #ffffff;
  --text: #12213a;
  --muted: #59657c;
  --line: #d9e2f2;
  --primary: #2563eb;
  --primary-dark: #1e4fc7;
  --success: #059669;
  --shadow: 0 18px 40px rgba(27, 60, 126, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(1000px 500px at 20% -10%, #ddeaff 0%, transparent 55%), var(--bg);
}

.hub {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.hub__hero {
  margin-bottom: 36px;
}

.hub__badge {
  display: inline-flex;
  align-items: center;
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  background: #e7f0ff;
}

.hub__hero h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
}

.hub__hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.hub__section + .hub__section {
  margin-top: 32px;
}

.hub__section-head {
  margin-bottom: 16px;
}

.hub__section-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cards:not(.cards--planned) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.card__top {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.22;
}

.card__status {
  width: fit-content;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #7a8394;
  background: #edf1f8;
}

.card__status--active {
  color: var(--success);
  background: #dcfce7;
}

.card__text {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.card__text code {
  padding: 2px 6px;
  border-radius: 6px;
  color: #2f3d57;
  background: #edf2fb;
}

.card__actions {
  margin-top: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  color: #fff;
  background: var(--primary);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.3);
  outline-offset: 3px;
}

.card--planned {
  box-shadow: none;
}

@media (max-width: 900px) {
  .cards,
  .cards.cards--planned {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hub {
    width: calc(100% - 28px);
    padding: 36px 0 52px;
  }

  .hub__hero h1 {
    font-size: 30px;
  }

  .hub__hero p {
    font-size: 15px;
  }

  .card {
    padding: 18px;
  }
}
