/* Lazy Block: hero — главный экран с фоном, заголовком и кнопкой. */

.lazyblock-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  /* Видимая высота = 100vh: добавляем --hero-pull, т.к. на столько hero поднят
     под шапку (его верх уходит за край экрана). */
  min-height: calc(100vh + var(--hero-pull));
  /* Full-bleed: секция всегда во всю ширину окна, даже внутри контейнера. */
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  /* Поднимаем hero под плавающую шапку (она перекрывает его сверху),
     контент отбиваем сверху на высоту шапки. */
  margin-top: calc(-1 * var(--hero-pull, 104px));
  padding-top: var(--header-offset, 128px);
  padding-bottom: 100px;
  overflow: hidden;
  color: var(--white, #ffffff);
}

/* Для авторизованных вычитаем высоту админ-бара, чтобы hero не вылезал снизу
   (плюс та же компенсация подъёма --hero-pull). */
.admin-bar .lazyblock-hero { min-height: calc(100vh - 32px + var(--hero-pull)); }

@media screen and (max-width: 782px) {
  .admin-bar .lazyblock-hero { min-height: calc(100vh - 46px + var(--hero-pull)); }
}

.lazyblock-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--text, #262626);
}

.lazyblock-hero__picture,
.lazyblock-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lazyblock-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.8) 100%);
}

/* Хлебные крошки: вверху hero, под плавающей шапкой. Прибавляем --hero-pull,
   т.к. hero поднят на эту величину вверх. */
.lazyblock-hero__breadcrumbs {
  position: absolute;
  top: calc(var(--header-offset, 128px) + var(--hero-pull, 87px));
  left: 0;
  right: 0;
  z-index: 1;
  width: min(calc(100% - (var(--gutter, 16px) * 2)), var(--container, 1224px));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  font-size: 12px;
  line-height: normal;
  color: var(--white, #ffffff);
}

.lazyblock-hero__breadcrumbs a,
.lazyblock-hero__crumb-sep {
  opacity: 0.4;
}

.lazyblock-hero__breadcrumbs a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.lazyblock-hero__breadcrumbs a:hover { opacity: 1; }

.lazyblock-hero__crumb-current { opacity: 1; }

.lazyblock-hero__inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - (var(--gutter, 16px) * 2)), var(--container, 1224px));
  margin-inline: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.lazyblock-hero__title {
  margin: 0;
  max-width: 704px;
  font-weight: 600;
  font-size: 48px;
  line-height: 1.1;
  color: var(--white, #ffffff);
}

.lazyblock-hero__aside {
  flex-shrink: 0;
  width: 288px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.lazyblock-hero__text {
  margin: 0;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  color: var(--white, #ffffff);
}

.lazyblock-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  padding: 0 24px;
  border-radius: 10px;
  background: var(--green, #73d13d);
  color: var(--white, #ffffff);
  font-weight: 600;
  font-size: 16px;
  line-height: normal;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.lazyblock-hero__button:hover { background: var(--green-hover, #52c41a); }

@media (max-width: 768px) {
  .lazyblock-hero { padding-bottom: 40px; }

  .lazyblock-hero__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
  }

  .lazyblock-hero__title {
    max-width: none;
    font-size: 40px;
  }

  .lazyblock-hero__aside { width: 100%; }

  .lazyblock-hero__text { font-size: 13px; }
}
