.tabs-hero-demo {
  position: relative;
  min-height: 720px;
  height: calc(100svh - 42px);
  max-height: 860px;
  overflow: hidden;
  background: #161616;
  color: #fff;
  isolation: isolate;
}

.tabs-hero-demo__backdrop,
.tabs-hero-demo__bg,
.tabs-hero-demo__shade {
  position: absolute;
  inset: 0;
}

.tabs-hero-demo__backdrop {
  z-index: -3;
}

.tabs-hero-demo__bg {
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 700ms ease, transform 900ms ease;
}

.tabs-hero-demo__bg.is-active {
  opacity: 1;
  transform: scale(1);
}

.tabs-hero-demo__bg--team {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-image: none;
}

.tabs-hero-demo__bg--team span {
  min-width: 0;
  background-size: cover;
  background-position: center;
}

.tabs-hero-demo__shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(13, 13, 13, 0.86) 0%, rgba(13, 13, 13, 0.7) 38%, rgba(13, 13, 13, 0.22) 72%, rgba(13, 13, 13, 0.62) 100%),
    linear-gradient(0deg, rgba(13, 13, 13, 0.72) 0%, rgba(13, 13, 13, 0.04) 48%, rgba(13, 13, 13, 0.5) 100%);
}

.tabs-hero-demo__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(520px, 1.1fr);
  align-items: center;
  gap: 56px;
  height: 100%;
  padding-top: 118px;
  padding-bottom: 58px;
}

.tabs-hero-demo__intro {
  max-width: 620px;
}

.tabs-hero-demo__kicker {
  margin: 0 0 18px;
  color: #d7b56d;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.tabs-hero-demo h1 {
  margin: 0;
  max-width: 680px;
  color: #fff;
  font-size: 4rem;
  line-height: 0.98;
  text-wrap: balance;
  text-shadow: 0 16px 46px rgba(0, 0, 0, 0.45);
}

.tabs-hero-demo__lead {
  margin: 24px 0 0;
  max-width: 540px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  line-height: 1.55;
}

.tabs-hero-demo__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin-top: 34px;
}

.tabs-hero-demo__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 8px;
  background: #b51f2a;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 18px 38px rgba(181, 31, 42, 0.28);
  transition: transform 220ms ease, background 220ms ease;
}

.tabs-hero-demo__cta:hover,
.tabs-hero-demo__cta:focus-visible {
  background: #9f1721;
  color: #fff;
  transform: translateY(-2px);
}

.tabs-hero-demo__cta svg {
  width: 20px;
  height: 20px;
}

.tabs-hero-demo__note {
  max-width: 220px;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}

.tabs-hero-demo__fan {
  position: relative;
  min-height: 560px;
}

.tabs-hero-demo__panel {
  position: absolute;
  right: 0;
  bottom: 18px;
  display: block;
  width: 330px;
  height: 455px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: #222;
  color: #fff;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.34);
  transform-origin: 50% 100%;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), opacity 280ms ease, width 420ms ease, height 420ms ease, filter 280ms ease;
}

.tabs-hero-demo__panel:nth-child(1) {
  z-index: 7;
  transform: translate(-122px, -4px) rotate(-12deg);
}

.tabs-hero-demo__panel:nth-child(2) {
  z-index: 6;
  transform: translate(-76px, -20px) rotate(-7deg);
}

.tabs-hero-demo__panel:nth-child(3) {
  z-index: 5;
  transform: translate(-28px, -18px) rotate(-2deg);
}

.tabs-hero-demo__panel:nth-child(4) {
  z-index: 4;
  transform: translate(24px, -8px) rotate(3deg);
}

.tabs-hero-demo__panel:nth-child(5) {
  z-index: 3;
  transform: translate(76px, 12px) rotate(8deg);
}

.tabs-hero-demo__panel:nth-child(6) {
  z-index: 2;
  transform: translate(118px, 36px) rotate(14deg);
}

.tabs-hero-demo__panel:nth-child(7) {
  z-index: 1;
  transform: translate(158px, 68px) rotate(20deg);
}

.tabs-hero-demo__panel:not(.is-active) {
  opacity: 0.78;
  filter: saturate(0.82) brightness(0.86);
}

.tabs-hero-demo__panel.is-active {
  z-index: 10;
  width: 390px;
  height: 505px;
  opacity: 1;
  filter: none;
  transform: translate(-92px, -32px) rotate(0deg);
}

.tabs-hero-demo__panel:hover:not(.is-active),
.tabs-hero-demo__panel:focus-visible:not(.is-active) {
  opacity: 1;
  filter: none;
}

.tabs-hero-demo__panel:focus-visible {
  outline: 3px solid #d7b56d;
  outline-offset: 4px;
}

.tabs-hero-demo__panel-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: transform 520ms ease;
}

.tabs-hero-demo__panel.is-active .tabs-hero-demo__panel-image {
  transform: scale(1);
}

.tabs-hero-demo__panel--team .tabs-hero-demo__panel-image {
  top: 0;
  right: auto;
  bottom: 0;
  left: 0;
  width: 50%;
}

.tabs-hero-demo__panel--team .tabs-hero-demo__panel-image--right {
  right: 0;
  left: 50%;
}

.tabs-hero-demo__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.18) 42%, rgba(0, 0, 0, 0.82) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.04));
}

.tabs-hero-demo__panel.is-active::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.1) 44%, rgba(0, 0, 0, 0.68) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.02));
}

.tabs-hero-demo__panel-content {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.tabs-hero-demo__panel-title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.05;
}

.tabs-hero-demo__panel-text {
  max-width: 280px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.98rem;
  line-height: 1.4;
}

@media (max-width: 1180px) {
  .tabs-hero-demo__inner {
    grid-template-columns: minmax(300px, 0.82fr) minmax(460px, 1.18fr);
    gap: 36px;
  }

  .tabs-hero-demo h1 {
    font-size: 3.25rem;
  }

  .tabs-hero-demo__panel {
    width: 292px;
    height: 420px;
  }

  .tabs-hero-demo__panel.is-active {
    width: 344px;
    height: 468px;
  }
}

@media (max-width: 960px) {
  .tabs-hero-demo {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .tabs-hero-demo__shade {
    background:
      linear-gradient(180deg, rgba(13, 13, 13, 0.8) 0%, rgba(13, 13, 13, 0.58) 48%, rgba(13, 13, 13, 0.86) 100%),
      linear-gradient(90deg, rgba(13, 13, 13, 0.72), rgba(13, 13, 13, 0.28));
  }

  .tabs-hero-demo__inner {
    display: block;
    min-height: 0;
    padding-top: 168px;
    padding-bottom: 44px;
  }

  .tabs-hero-demo h1 {
    font-size: 2.55rem;
  }

  .tabs-hero-demo__lead {
    font-size: 1.08rem;
  }

  .tabs-hero-demo__fan {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    min-height: 0;
    margin-top: 34px;
    padding: 0;
    overflow: visible;
  }

  .tabs-hero-demo__panel,
  .tabs-hero-demo__panel.is-active,
  .tabs-hero-demo__panel:nth-child(n) {
    position: relative;
    right: auto;
    bottom: auto;
    z-index: auto;
    flex: 1 1 calc(50% - 7px);
    width: auto;
    min-width: 220px;
    height: 108px;
    opacity: 1;
    filter: none;
    transform: none;
    order: 2;
  }

  .tabs-hero-demo__panel.is-active {
    flex-basis: 100%;
    height: 330px;
    order: 1;
  }

  .tabs-hero-demo__panel:not(.is-active)::after {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.76) 0%, rgba(0, 0, 0, 0.54) 56%, rgba(0, 0, 0, 0.24) 100%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.52));
  }

  .tabs-hero-demo__panel:not(.is-active) .tabs-hero-demo__panel-content {
    left: 16px;
    right: 14px;
    bottom: 14px;
    gap: 3px;
  }

  .tabs-hero-demo__panel:not(.is-active) .tabs-hero-demo__panel-title {
    font-size: 1rem;
    line-height: 1.15;
  }

  .tabs-hero-demo__panel:not(.is-active) .tabs-hero-demo__panel-text {
    display: none;
  }
}

@media (max-width: 640px) {
  .tabs-hero-demo__inner {
    padding-top: 164px;
    padding-bottom: 32px;
  }

  .tabs-hero-demo h1 {
    font-size: 2.1rem;
  }

  .tabs-hero-demo__actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .tabs-hero-demo__note {
    max-width: none;
  }

  .tabs-hero-demo__fan {
    gap: 10px;
    margin-top: 28px;
  }

  .tabs-hero-demo__panel,
  .tabs-hero-demo__panel.is-active,
  .tabs-hero-demo__panel:nth-child(n) {
    flex-basis: 100%;
    min-width: 0;
    height: 76px;
  }

  .tabs-hero-demo__panel.is-active {
    height: 285px;
  }

  .tabs-hero-demo__panel-content {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .tabs-hero-demo__panel-title {
    font-size: 1.32rem;
  }

  .tabs-hero-demo__panel-text {
    font-size: 0.92rem;
  }

  .tabs-hero-demo__panel:not(.is-active) .tabs-hero-demo__panel-content {
    bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tabs-hero-demo__bg,
  .tabs-hero-demo__panel,
  .tabs-hero-demo__panel-image,
  .tabs-hero-demo__cta {
    transition: none;
  }
}
