/*!
 * sites-admin managed blocks — base styles for the News/Cards block.
 * Scoped under .sa-block so it does not collide with the host site.
 * Canonical source — keep php/blocks-assets and the deployed copy in sync.
 */
.sa-block {
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}
.sa-block *,
.sa-block *::before,
.sa-block *::after {
  box-sizing: border-box;
}

.sa-block-title {
  margin: 0 0 22px;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

.sa-news-grid {
  display: grid;
  grid-template-columns: repeat(var(--sa-cols, 4), minmax(0, 1fr));
  gap: 22px;
}

.sa-news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(127, 127, 127, 0.18);
  text-decoration: none;
  color: inherit;
}
.sa-news-card--link {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.sa-news-card--link:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.sa-news-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: rgba(127, 127, 127, 0.12);
  overflow: hidden;
}
.sa-news-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sa-news-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 18px;
}
.sa-news-card-date {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.65;
}
.sa-news-card-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.3;
}
.sa-news-card-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  opacity: 0.85;
}

@media (max-width: 1024px) {
  .sa-news-grid {
    grid-template-columns: repeat(min(var(--sa-cols, 4), 3), minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .sa-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}
@media (max-width: 460px) {
  .sa-news-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Hero: эффектная шапка с моушеном по скроллу ───────────────────────── */
.sa-hero {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.sa-hero-stage {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sa-hero-canvas,
.sa-hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sa-hero-overlay {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 24px;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.5);
  will-change: transform, opacity;
  pointer-events: none;
}
.sa-hero-title {
  margin: 0 0 14px;
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.sa-hero-sub {
  margin: 0;
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  font-weight: 400;
  opacity: 0.92;
}
/* В редакторе текст шапки кликабелен для инлайн-правки. */
.sa-hero-overlay [data-sa-field] {
  pointer-events: auto;
}
