/* Скоро Пицца LMS v5.49.0 — баннеры в единой утверждённой 3D-концепции */

/* Экран аттестации больше не создаёт второй внутренний контейнер вокруг шапки. */
.assessment-screen {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 64px;
}

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

.team-ranking__hero.sp-infographic-hero {
  background-image: url("./headers/team.webp");
}

.assessment-hero {
  background-image: url("./headers/assessment-v5.49.jpg");
}

.team-ranking__hero.sp-infographic-hero::before,
.assessment-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background: linear-gradient(90deg, rgba(113, 5, 29, .28) 0%, rgba(140, 10, 34, .14) 43%, rgba(140, 10, 34, .06) 100%);
  mask-image: none;
  content: "";
  pointer-events: none;
}

.team-ranking__hero.sp-infographic-hero::after { display: none; }

.team-ranking__hero.sp-infographic-hero > div:first-child,
.assessment-hero__copy {
  position: relative;
  z-index: 1;
  max-width: min(760px, 58%);
}

.team-ranking__eyebrow,
.assessment-hero .eyebrow {
  margin: 0 0 10px;
  color: var(--sp-brand-yellow);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: .15em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(66, 0, 16, .18);
}

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

.team-ranking__hero.sp-infographic-hero p:last-child,
.assessment-hero p:not(.eyebrow) {
  max-width: 740px;
  margin: 15px 0 0;
  color: rgba(255, 255, 255, .86);
  font-size: 17px;
  line-height: 1.5;
  text-shadow: 0 1px 10px rgba(66, 0, 16, .14);
}

.team-ranking__unit {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 18px;
  row-gap: 3px;
  align-items: center;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--sp-line);
  border-radius: 18px;
  color: var(--sp-text);
  background: var(--sp-surface);
  box-shadow: var(--sp-shadow-panel);
}

.team-ranking__unit span {
  grid-row: 1 / 3;
  color: var(--sp-brand-red-dark);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
}

.team-ranking__unit strong {
  margin-top: 0;
  color: var(--sp-text);
  font-size: 17px;
  line-height: 1.25;
}

.team-ranking__unit small {
  margin-top: 0;
  color: var(--sp-muted);
  font-size: 10px;
  line-height: 1.4;
}

.assessment-hero__visual { display: none; }

/* Пояснение и действия вынесены из баннера: его высота теперь совпадает с другими разделами. */
.assessment-actionbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 18px 0;
  padding: 16px 18px;
  border: 1px solid var(--sp-line);
  border-radius: 18px;
  background: var(--sp-surface);
  box-shadow: var(--sp-shadow-panel);
}

.assessment-actionbar > p {
  max-width: 760px;
  margin: 0;
  color: var(--sp-muted);
  font-size: 14px;
  line-height: 1.5;
}

.assessment-actionbar .assessment-hero__actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.assessment-actionbar .button {
  min-height: 46px;
  padding-inline: 20px;
  border-radius: var(--sp-radius-control);
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 900px) {
  .team-ranking__hero.sp-infographic-hero,
  .assessment-hero {
    height: 230px;
    min-height: 230px;
    padding: 32px 28px;
    border-radius: 24px;
  }

  .team-ranking__hero.sp-infographic-hero > div:first-child,
  .assessment-hero__copy { max-width: 66%; }
}

@media (max-width: 720px) {
  .assessment-screen { padding: 0 0 42px; }

  .team-ranking__hero.sp-infographic-hero,
  .assessment-hero {
    display: grid;
    height: auto;
    min-height: 300px;
    align-content: end;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 26px 20px;
    border-radius: 22px;
    background-position: 60% center;
  }

  .team-ranking__hero.sp-infographic-hero::before,
  .assessment-hero::before {
    background: linear-gradient(180deg, rgba(113, 5, 29, .16) 0%, rgba(113, 5, 29, .47) 56%, rgba(91, 3, 23, .86) 100%);
  }

  .team-ranking__hero.sp-infographic-hero > div:first-child,
  .assessment-hero__copy { max-width: 100%; }

  .team-ranking__hero.sp-infographic-hero h1,
  .assessment-hero h1 { font-size: 38px; }

  .team-ranking__hero.sp-infographic-hero p:last-child {
    margin-top: 12px;
    font-size: 15px;
  }

  .assessment-hero p:not(.eyebrow) {
    margin-top: 12px;
    font-size: 15px;
  }

  .team-ranking__unit {
    box-sizing: border-box;
    width: 100%;
  }

  .assessment-actionbar {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    margin: 14px 0;
    padding: 16px;
    border-radius: 18px;
  }

  .assessment-actionbar .assessment-hero__actions { display: grid; }
  .assessment-actionbar .button { width: 100%; }
}
