/* ============================================================
   images-styles.css — стили для 6 изображений pillar-страницы
   ============================================================ */

/* --- Hero figure (без figcaption, контекст даёт H1) --- */
.hero-figure {
  margin: 1.5rem 0 2rem;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  max-width: 100%;
}

.hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border-radius: 11px;
}

/* --- Cluster figures (внутри секций data-content) --- */
[data-content] figure:not(.hero-figure) {
  margin: 2rem 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-card);
  max-width: 100%;
}

[data-content] figure:not(.hero-figure) img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 675;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

[data-content] figure:not(.hero-figure) figcaption {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
  padding: 0.75rem 1rem 0.95rem;
  border-left: 3px solid var(--accent);
  background: rgba(85, 224, 246, 0.03);
  font-style: normal;
}

/* --- Responsive --- */
@media (max-width: 720px) {
  .hero-figure {
    margin: 1rem 0 1.5rem;
    border-radius: 8px;
  }

  [data-content] figure:not(.hero-figure) {
    margin: 1.5rem 0;
    border-radius: 8px;
  }

  [data-content] figure:not(.hero-figure) figcaption {
    font-size: 0.8125rem;
    padding: 0.65rem 0.85rem 0.85rem;
  }
}
