.op-spheres {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(84px, 7vw, 132px) 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(64, 205, 235, .13), transparent 30%),
    linear-gradient(135deg, #eef8fc 0%, #f8fcfe 48%, #e8f5fb 100%);
  scroll-margin-top: 112px;
}

.op-spheres::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .46;
  background-image:
    linear-gradient(rgba(32, 116, 178, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 116, 178, .075) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 88%, transparent);
}

.op-spheres > .wrap {
  width: min(1480px, calc(100% - 40px));
  max-width: none;
}

.op-spheres__head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .75fr);
  align-items: end;
  gap: clamp(32px, 7vw, 120px);
  margin-bottom: clamp(42px, 5vw, 72px);
}

.op-spheres__head h2 {
  max-width: 820px;
  margin: 24px 0 0;
  color: #071a2c;
  font-size: clamp(54px, 5.2vw, 82px) !important;
  font-weight: 430;
  letter-spacing: -.055em !important;
  line-height: .94 !important;
}

.op-spheres__head > p {
  max-width: 560px;
  margin: 0 0 4px;
  color: #516d84;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.62;
}

.op-spheres-panorama {
  height: clamp(590px, 46vw, 700px);
  display: flex;
  gap: 8px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(45, 137, 205, .24);
  border-radius: 22px;
  background: rgba(255, 255, 255, .62);
  box-shadow: 0 30px 80px rgba(24, 91, 135, .14);
  backdrop-filter: blur(18px);
}

.op-spheres-card {
  position: relative;
  isolation: isolate;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: #063e77;
  text-align: left;
  cursor: pointer;
  transform: translateZ(0);
  transition:
    flex-grow 520ms cubic-bezier(.22, 1, .36, 1),
    transform 300ms cubic-bezier(.22, 1, .36, 1),
    filter 300ms ease;
}

.op-spheres-card.is-active {
  flex-grow: 3.35;
}

.op-spheres-card img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.82) contrast(1.03);
  transform: scale(1.01);
  transition: transform 700ms cubic-bezier(.22, 1, .36, 1), filter 320ms ease;
}

.op-spheres-card::before,
.op-spheres-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.op-spheres-card::before {
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(1, 22, 45, .24) 0%, rgba(1, 25, 50, .06) 36%, rgba(1, 24, 48, .92) 100%),
    linear-gradient(90deg, rgba(0, 45, 88, .34), transparent 66%);
  transition: opacity 300ms ease;
}

.op-spheres-card::after {
  z-index: 2;
  inset: 1px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 13px;
}

.op-spheres-card__num {
  position: absolute;
  z-index: 3;
  inset: 22px auto auto 20px;
  color: #7ce9ff;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .06em;
}

.op-spheres-card__copy {
  position: absolute;
  z-index: 3;
  inset: auto 22px 26px;
  width: min(480px, calc(100% - 44px));
}

.op-spheres-card__copy strong,
.op-spheres-card__copy > span {
  display: block;
}

body.page-oprod .op-spheres .op-spheres-card .op-spheres-card__copy strong {
  width: max-content;
  max-width: 100%;
  font-size: clamp(20px, 1.65vw, 26px) !important;
  font-weight: 520;
  letter-spacing: -.04em !important;
  line-height: 1.03 !important;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  transform-origin: center;
  transition: transform 340ms cubic-bezier(.22, 1, .36, 1);
}

body.page-oprod .op-spheres .op-spheres-card .op-spheres-card__copy > span {
  max-width: 440px;
  margin-top: 15px;
  color: rgba(255, 255, 255, .79);
  font-size: 14px !important;
  line-height: 1.55 !important;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 240ms ease 100ms, transform 360ms cubic-bezier(.22, 1, .36, 1) 80ms;
}

.op-spheres-card.is-active .op-spheres-card__copy strong {
  width: auto;
  writing-mode: horizontal-tb;
  transform: none;
}

body.page-oprod .op-spheres .op-spheres-card.is-active .op-spheres-card__copy strong {
  font-size: clamp(28px, 2.25vw, 36px) !important;
  writing-mode: horizontal-tb;
  transform: none;
}

.op-spheres-card.is-active .op-spheres-card__copy > span {
  opacity: 1;
  transform: none;
}

body.page-oprod .op-spheres .op-spheres-card.is-active .op-spheres-card__copy > span {
  opacity: 1;
  transform: none;
}

.op-spheres-card.is-active img {
  filter: saturate(.94) contrast(1.03);
  transform: scale(1.045);
}

.op-spheres-card:focus-visible {
  outline: 3px solid #57daf5;
  outline-offset: -5px;
}

@media (hover: hover) and (pointer: fine) {
  .op-spheres-card:not(.is-active):hover {
    filter: brightness(1.08);
    transform: translateY(-3px);
  }

  .op-spheres-card:not(.is-active):hover img {
    transform: scale(1.045);
  }
}

body.page-oprod .op-spheres .op-spheres-card:not(.is-active) .op-spheres-card__copy > span {
  display: none;
}

@media (max-width: 1080px) {
  .op-spheres__head {
    grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr);
    gap: 44px;
  }

  .op-spheres__head h2 {
    font-size: clamp(48px, 6.4vw, 68px) !important;
  }

  .op-spheres-panorama {
    height: 620px;
  }
}

@media (max-width: 860px) {
  .op-spheres {
    padding: 72px 0 84px;
  }

  .op-spheres > .wrap {
    width: min(calc(100% - 32px), 720px);
  }

  .op-spheres__head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 24px;
    margin-bottom: 38px;
  }

  .op-spheres__head h2 {
    font-size: clamp(46px, 9.5vw, 66px) !important;
  }

  .op-spheres__head > p {
    max-width: 620px;
  }

  .op-spheres-panorama {
    height: auto;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    border-radius: 18px;
  }

  .op-spheres-card,
  .op-spheres-card.is-active {
    flex: none;
    width: 100%;
  }

  .op-spheres-card {
    min-height: 96px;
    transition: min-height 480ms cubic-bezier(.22, 1, .36, 1), transform 280ms ease;
  }

  .op-spheres-card.is-active {
    min-height: 420px;
  }

  .op-spheres-card__num {
    inset: 18px auto auto 18px;
  }

  .op-spheres-card__copy {
    inset: auto 18px 20px;
    width: calc(100% - 36px);
  }

  body.page-oprod .op-spheres .op-spheres-card .op-spheres-card__copy strong,
  body.page-oprod .op-spheres .op-spheres-card.is-active .op-spheres-card__copy strong {
    width: auto;
    font-size: clamp(22px, 4.6vw, 30px) !important;
    writing-mode: horizontal-tb;
    transform: none;
  }
}

@media (max-width: 520px) {
  .op-spheres {
    padding: 58px 0 68px;
  }

  .op-spheres > .wrap {
    width: calc(100% - 24px);
  }

  .op-spheres__head {
    margin-bottom: 30px;
  }

  .op-spheres__head h2 {
    margin-top: 18px;
    font-size: clamp(40px, 12vw, 54px) !important;
  }

  .op-spheres__head > p {
    font-size: 14px;
    line-height: 1.58;
  }

  .op-spheres-card {
    min-height: 88px;
    border-radius: 12px;
  }

  .op-spheres-card.is-active {
    min-height: 370px;
  }

  body.page-oprod .op-spheres .op-spheres-card .op-spheres-card__copy strong,
  body.page-oprod .op-spheres .op-spheres-card.is-active .op-spheres-card__copy strong {
    font-size: 22px !important;
  }

  .op-spheres-card__copy > span {
    font-size: 13px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .op-spheres-card,
  .op-spheres-card img,
  .op-spheres-card__copy strong,
  .op-spheres-card__copy > span {
    scroll-behavior: auto;
    transition: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .op-spheres-panorama {
    background: #f5fbfe;
    backdrop-filter: none;
  }
}
