.smd-prodpanels,
.smd-prodpanels * {
  box-sizing: border-box;
}

.smd-prodpanels {
  padding: 72px 0 78px;
  background:
    radial-gradient(circle at top left, rgba(31, 94, 255, 0.12), transparent 24%),
    radial-gradient(circle at bottom right, rgba(242, 138, 46, 0.08), transparent 18%),
    linear-gradient(180deg, #121a29 0%, #0d1421 100%);
  color: #f3f6fb;
}

.smd-prodpanels__shell {
  width: min(100%, 1520px);
  margin: 0 auto;
}

.smd-prodpanels__header {
  padding: 0 32px 28px;
}

.smd-prodpanels__eyebrow {
  margin: 0 0 10px;
  color: #7ea8ff;
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.smd-prodpanels__title {
  margin: 0;
  max-width: 920px;
  color: #f3f6fb;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.smd-prodpanels__viewport {
  position: relative;
  height: 680px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.28),
    0 32px 72px rgba(0, 0, 0, 0.34);
  background: #061423;
}

.smd-prodpanels__bg-layer,
.smd-prodpanels__panels {
  position: absolute;
  inset: 0;
}

.smd-prodpanels__bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity 0.42s ease,
    transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.smd-prodpanels__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 16, 29, 0.22), rgba(7, 16, 29, 0.12) 34%, rgba(7, 16, 29, 0.58));
}

.smd-prodpanels__bg.is-active {
  opacity: 1;
  transform: scale(1);
}

.smd-prodpanels__panels {
  z-index: 2;
}

.smd-prodpanels__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
  cursor: pointer;
  transition:
    left 0.6s cubic-bezier(0.2, 0.9, 0.22, 1),
    width 0.6s cubic-bezier(0.2, 0.9, 0.22, 1),
    background-color 0.24s ease;
  overflow: hidden;
}

.smd-prodpanels__panel:first-child {
  border-left: 0;
}

.smd-prodpanels__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 16, 29, 0.02), rgba(7, 16, 29, 0.02) 18%, rgba(7, 16, 29, 0.56));
  transition: opacity 0.24s ease;
}

.smd-prodpanels__panel:hover::before,
.smd-prodpanels__panel:focus-visible::before,
.smd-prodpanels__panel.is-active::before {
  opacity: 0.9;
}

.smd-prodpanels__panel:hover {
  background-color: rgba(255, 255, 255, 0.04);
}

.smd-prodpanels__panel:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: -2px;
}

.smd-prodpanels__panel-index {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(10, 20, 30, 0.42);
  color: #ffffff;
  font: 700 13px/1 "Segoe UI", Tahoma, sans-serif;
  letter-spacing: 0.12em;
}

.smd-prodpanels__panel-copy {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 1;
  display: grid;
  gap: 8px;
  color: #ffffff;
  text-align: left;
}

.smd-prodpanels__panel-copy strong {
  font-size: 26px;
  line-height: 1;
}

.smd-prodpanels__panel-copy span {
  max-width: 280px;
  color: rgba(243, 246, 251, 0.78);
  font-size: 14px;
  line-height: 1.45;
}

.smd-prodpanels__panel:not(.is-active) .smd-prodpanels__panel-copy {
  right: auto;
  bottom: 16px;
  left: 14px;
}

.smd-prodpanels__panel:not(.is-active) .smd-prodpanels__panel-copy strong {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 16px;
  letter-spacing: 0.04em;
}

.smd-prodpanels__panel:not(.is-active) .smd-prodpanels__panel-copy span {
  display: none;
}

@media (max-width: 980px) {
  .smd-prodpanels {
    padding: 48px 0 56px;
  }

  .smd-prodpanels__header {
    padding: 0 16px 22px;
  }

  .smd-prodpanels__viewport {
    height: 560px;
    border-radius: 24px;
  }
}

@media (max-width: 767px) {
  .smd-prodpanels__viewport {
    height: 440px;
  }

  .smd-prodpanels__title {
    font-size: 30px;
  }

  .smd-prodpanels__panel-index {
    top: 12px;
    left: 12px;
    min-width: 38px;
    height: 26px;
    font-size: 11px;
  }

  .smd-prodpanels__panel-copy {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .smd-prodpanels__panel-copy strong {
    font-size: 20px;
  }

  .smd-prodpanels__panel-copy span {
    font-size: 13px;
  }

  .smd-prodpanels__panel:not(.is-active) .smd-prodpanels__panel-copy strong {
    font-size: 13px;
  }
}
