/* Скоро Пицца LMS v5.40.0 — единые профессиональные шапки разделов */
:root {
  --sp-hero-red: #a60f24;
  --sp-hero-yellow: #ffca28;
}

.sp-infographic-hero,
.analytics-screen .analytics-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  box-sizing: border-box;
  width: 100%;
  min-height: 210px;
  gap: 28px;
  padding: 38px 42px;
  border: 0;
  border-radius: 28px;
  color: #fff;
  background-color: var(--sp-hero-red);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  box-shadow: 0 18px 48px rgba(165, 15, 36, .20);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  isolation: isolate;
}

/* Тонкая красная вуаль делает 3D-инфографику спокойнее, но сохраняет детали. */
.sp-infographic-hero::before,
.analytics-screen .analytics-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(113, 5, 29, .28) 0%, rgba(140, 10, 34, .14) 43%, rgba(140, 10, 34, .06) 100%);
  content: "";
  pointer-events: none;
}

.analytics-screen .analytics-hero {
  background-image: url('./headers/analytics.webp');
}

[data-screen="catalog"] > .sp-infographic-hero {
  background-image: url('./headers/catalog.webp');
}

.sp-team__hero.sp-infographic-hero {
  margin-top: 24px;
  background-image: url('./headers/team.webp');
}

[data-screen="news-admin"] .sp-infographic-hero {
  background-image: url('./headers/news.webp');
}

.sp-infographic-hero > div:first-child,
.analytics-screen .analytics-hero-copy,
.sp-team__hero.sp-infographic-hero .sp-team__brand {
  position: relative;
  z-index: 1;
  max-width: min(760px, 58%);
}

.sp-infographic-hero .eyebrow,
.sp-team__hero.sp-infographic-hero .sp-team__eyebrow,
.analytics-screen .analytics-eyebrow {
  margin: 0 0 10px;
  color: var(--sp-hero-yellow);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(66, 0, 16, .18);
}

.sp-infographic-hero h1,
.sp-team__hero.sp-infographic-hero h1,
.analytics-screen .analytics-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 850;
  line-height: .98;
  letter-spacing: -.04em;
  text-shadow: 0 2px 14px rgba(66, 0, 16, .18);
}

.sp-infographic-hero > div:first-child > p:last-child,
.sp-team__hero.sp-infographic-hero .sp-team__brand p,
.analytics-screen .analytics-hero-subtitle {
  margin: 16px 0 0;
  max-width: 740px;
  color: rgba(255, 255, 255, .88);
  font-size: 17px;
  line-height: 1.5;
  text-shadow: 0 1px 10px rgba(66, 0, 16, .14);
}

/* Старый декоративный паттерн команды заменён профессиональной инфографикой. */
.sp-team__hero.sp-infographic-hero::after,
.analytics-screen .analytics-hero::after {
  display: none;
}

.sp-team__hero.sp-infographic-hero .sp-team__user {
  position: relative;
  z-index: 1;
  border-color: rgba(255, 255, 255, .42);
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 12px 32px rgba(69, 0, 17, .13);
  backdrop-filter: blur(12px);
}

.sp-infographic-hero .search {
  position: relative;
  z-index: 1;
  border-color: rgba(255, 255, 255, .42);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 12px 30px rgba(69, 0, 17, .13);
  backdrop-filter: blur(12px);
}

.sp-infographic-hero > .button--primary {
  position: relative;
  z-index: 1;
  min-height: 48px;
  padding-inline: 22px;
  border: 1px solid rgba(255, 255, 255, .78);
  background: rgba(255, 255, 255, .16);
  box-shadow: 0 12px 30px rgba(69, 0, 17, .16);
  backdrop-filter: blur(12px);
}

.sp-infographic-hero > .button--primary:hover {
  background: rgba(255, 255, 255, .24);
}

.analytics-screen .analytics-hero-actions {
  position: relative;
  z-index: 1;
}

@media (max-width: 880px) {
  .sp-infographic-hero,
  .analytics-screen .analytics-hero {
    min-height: 230px;
    padding: 32px 28px;
    border-radius: 24px;
    background-position: center;
  }

  .sp-infographic-hero > div:first-child,
  .analytics-screen .analytics-hero-copy,
  .sp-team__hero.sp-infographic-hero .sp-team__brand {
    max-width: 66%;
  }

  .sp-infographic-hero h1,
  .sp-team__hero.sp-infographic-hero h1,
  .analytics-screen .analytics-hero h1 {
    font-size: clamp(34px, 6vw, 50px);
  }

  .sp-team__hero.sp-infographic-hero .sp-team__user {
    min-width: 210px;
  }
}

@media (max-width: 640px) {
  .sp-infographic-hero,
  .analytics-screen .analytics-hero,
  .sp-team__hero.sp-infographic-hero {
    display: grid;
    align-content: end;
    min-height: 330px;
    gap: 18px;
    padding: 26px 20px;
    border-radius: 22px;
    background-position: 60% center;
  }

  .sp-infographic-hero::before,
  .analytics-screen .analytics-hero::before {
    background: linear-gradient(180deg, rgba(113, 5, 29, .20) 0%, rgba(113, 5, 29, .52) 58%, rgba(91, 3, 23, .82) 100%);
  }

  .sp-infographic-hero > div:first-child,
  .analytics-screen .analytics-hero-copy,
  .sp-team__hero.sp-infographic-hero .sp-team__brand {
    max-width: 100%;
  }

  .sp-infographic-hero h1,
  .sp-team__hero.sp-infographic-hero h1,
  .analytics-screen .analytics-hero h1 {
    font-size: 38px;
  }

  .sp-infographic-hero > div:first-child > p:last-child,
  .sp-team__hero.sp-infographic-hero .sp-team__brand p,
  .analytics-screen .analytics-hero-subtitle {
    margin-top: 12px;
    font-size: 15px;
  }

  .sp-infographic-hero .search,
  .sp-infographic-hero > .button--primary,
  .sp-team__hero.sp-infographic-hero .sp-team__user,
  .analytics-screen .analytics-hero-actions {
    width: 100%;
    min-width: 0;
  }

  .analytics-screen .analytics-hero-actions {
    justify-items: stretch;
  }

  .analytics-screen .analytics-updated {
    white-space: normal;
  }
}
