/* ==========================================================================
   Баннер с фоновым изображением в верхней части страницы
   Разметка формируется в overrides/main.html
   ========================================================================== */

.hero-banner {
  position: relative;
  display: flex;
  align-items: flex-end;      /* текст прижат к низу баннера, как в Google Sites */
  min-height: 260px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Затемнение фона, чтобы текст читался */
.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.55) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 61rem;           /* совпадает с шириной контента Material */
  margin: 0 auto;
  padding: 1.6rem 1.2rem;
  color: #fff;
}

.hero-title {
  margin: 0;
  color: #fff;
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  margin: 0.4rem 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* На узких экранах баннер ниже */
@media screen and (max-width: 76.1875em) {
  .hero-banner {
    min-height: 180px;
  }
  .hero-title {
    font-size: 1.5rem;
  }
}

/* Заголовок H1 уже выведен на баннере — убираем дубль в тексте страницы.
   Если дубль нужен — удалите этот блок. */
.hero-banner ~ .md-main .md-content__inner > h1:first-of-type {
  display: none;
}

