: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(1200px, 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(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 18px;
  align-items: stretch;
}

.cards--planned {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 380px));
}

.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);
  min-height: 100%;
}

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

.card h3 {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 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__preview {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(180deg, #f4f8ff 0%, #e7f0ff 100%);
}

.card__preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.28s ease;
}

.card--active:hover .card__preview img {
  transform: scale(1.03);
}

.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: 1060px) {
  .hub {
    width: calc(100% - 36px);
    padding: 48px 0 64px;
  }

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

@media (max-width: 860px) {
  .hub__hero {
    margin-bottom: 28px;
  }

  .hub__hero h1 {
    font-size: clamp(30px, 6vw, 38px);
  }

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

  .cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }

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

  .card__preview {
    aspect-ratio: 16 / 9;
  }
}

@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;
  }

  .btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .hub {
    width: calc(100% - 20px);
    padding: 28px 0 44px;
  }

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

  .card {
    gap: 14px;
    padding: 16px;
  }

  .card__text {
    font-size: 14px;
    line-height: 1.5;
  }
}
