body[data-page="home"] .layout-shell {
  max-width: 1280px;
  margin-top: 12px;
}

body[data-page="home"] .main-content {
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 16px;
  padding-bottom: 16px;
}

body[data-page="home"] .page-affiliate-note {
  display: none;
}

.home-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.home-description {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
  text-align: center;
}

.home-card {
  display: grid;
  gap: 8px;
  padding: 18px 16px;
  border: 2px solid var(--brand-light);
  border-radius: 18px;
  background: linear-gradient(180deg, #fffdf7 0%, #fff 100%);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 16px rgba(31, 106, 85, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.home-card:hover,
.home-card:focus-visible {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(31, 106, 85, 0.12);
  outline: none;
}

.home-card-title {
  margin: 0;
  color: var(--accent);
  font-size: 1.18rem;
  line-height: 1.25;
}

.home-card-text {
  margin: 0;
  color: var(--text-main);
  font-size: 0.94rem;
  line-height: 1.45;
}

@media (max-width: 850px) {
  body[data-page="home"] .page-affiliate-note {
    display: block;
  }
}

@media (max-width: 520px) {
  body[data-page="home"] .main-content {
    padding: 6px 8px 8px;
  }

  .home-card {
    padding: 14px 12px;
  }

  .home-card-title {
    font-size: 1.08rem;
  }
}
