/* /local/seo-cube/seo-cube.css */
.seo-cube,
.seo-cube *{ box-sizing:border-box; }

.seo-cube{
  padding: 22px 0 10px;
  background: transparent;
}

.seo-cube__wrap.maxwidth-theme{ width: 100%; }

.seo-cube__grid{
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 22px;
  align-items: center;
}

/* LEFT */
.seo-cube__left{ min-width: 0; }

/* Сцена БЕЗ границ */
.psc-scene{
  width: 360px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0;
  display: grid;
  place-items: center;
  perspective: 980px;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  position: relative;
  --cube: 260px;
  filter: none !important;
  -webkit-filter: none !important;
}

.psc-scene::before{
  content:"";
  position:absolute;
  left: 50%;
  top: calc(50% + (var(--cube) / 2) - 10px);
  width: calc(var(--cube) * 1.22);
  height: calc(var(--cube) * 0.40);
  transform: translateX(-34%) rotate(-18deg) skewX(-12deg);
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(closest-side, rgba(2,6,23,.18), transparent 78%);
  filter: blur(16px);
  opacity: .32;
}

.psc-scene::after{
  content:"";
  position:absolute;
  left: 50%;
  top: calc(50% + (var(--cube) / 2) - 6px);
  width: calc(var(--cube) * 0.62);
  height: calc(var(--cube) * 0.12);
  transform: translateX(-50%) scaleY(.9);
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(closest-side, rgba(2,6,23,.26), transparent 72%);
  filter: blur(10px);
  opacity: .38;
}

.psc-cube{
  --s: 260px;
  width: var(--s);
  height: var(--s);
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  cursor: grab;
  touch-action: none;
  user-select: none;
  z-index: 1;
  filter: none !important;
  -webkit-filter: none !important;
}
.psc-cube:active{ cursor: grabbing; }

.psc-face{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  backface-visibility: hidden;
  border-radius: 0;
  border: none;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 2px, transparent 2px 8px),
    repeating-linear-gradient(45deg, rgba(0,0,0,.045) 0 1px, transparent 1px 7px),
    linear-gradient(#9aa2aa, #8c949d);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),
    inset 0 -1px 0 rgba(0,0,0,.18);
  -webkit-filter: none !important;
  filter: none !important;
}

/* Логотип на каждой грани */
.psc-scv{
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 36px;
  pointer-events: none;
  z-index: 2;
  opacity: .95;
  transform: translateZ(3px);
  transform-style: preserve-3d;
}
.psc-scv svg{
  width: 100%;
  height: 100%;
  display: block;
}

/* НЕактивные грани – серый логотип */
.psc-face:not(.-active) .psc-scv{
  opacity: .86;
  filter: grayscale(1) saturate(0) drop-shadow(0 2px 6px rgba(0,0,0,.22)) !important;
  -webkit-filter: grayscale(1) saturate(0) drop-shadow(0 2px 6px rgba(0,0,0,.22)) !important;
}

/* Активная грань – оригинальные цвета */
.psc-face.-active .psc-scv{
  opacity: .95;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.22)) !important;
  -webkit-filter: drop-shadow(0 2px 6px rgba(0,0,0,.22)) !important;
}

/* Надпись на грани */
.psc-label{
  position: relative;
  z-index: 1;
  transform: translateZ(2px);
  font-weight: 900;
  font-size: clamp(20px, 2.3vw, 30px);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(245,246,248,.42);
  text-shadow:
    -1px -1px 0 rgba(255,255,255,.55),
     1px  1px 0 rgba(0,0,0,.38),
     0px  3px 6px rgba(0,0,0,.22),
     0px 10px 18px rgba(0,0,0,.12);
  transition: color .14s ease, text-shadow .14s ease;
}

/* активная грань – текст красный */
.psc-face.-active .psc-label{
  color: rgba(220,38,38,.92);
  text-shadow:
    0 0 0 rgba(255,255,255,.0),
    0 1px 0 rgba(255,255,255,.35),
    0 6px 14px rgba(220,38,38,.20),
    0 10px 22px rgba(2,6,23,.18);
}

/* Позиции граней */
.psc-front { transform: rotateY(  0deg) translateZ(calc(var(--s) / 2)); }
.psc-back  { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.psc-right { transform: rotateY( 90deg) translateZ(calc(var(--s) / 2)); }
.psc-left  { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.psc-top   { transform: rotateX( 90deg) translateZ(calc(var(--s) / 2)); }
.psc-bottom{ transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }

/* Подсветка выбранной грани */
.psc-face.-active{
  box-shadow:
    inset 0 0 0 3px rgba(220,38,38,.85),
    0 0 0 10px rgba(220,38,38,.12),
    0 18px 42px rgba(2,6,23,.18),
    inset 0 1px 0 rgba(255,255,255,.45),
    inset 0 -1px 0 rgba(0,0,0,.18);
}

/* RIGHT */
.seo-cube__right{
  min-width: 0;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0;
  position: relative;
}

.psc-panels{
  position: relative;
}

.psc-panel{
  display: block;
}

.psc-panel + .psc-panel{
  margin-top: 16px;
}

/* Без JS все панели видны как обычные разделы */
.psc-js .seo-cube .psc-panel{
  display: none;
  margin-top: 0;
}

/* При наличии JS видна только активная */
.psc-js .seo-cube .psc-panel.is-active{
  display: block;
}

/* После инициализации JS hidden тоже поддерживаем */
.psc-panel[hidden]{
  display: none !important;
}

.psc-info__title{
  font-size: 28px;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 8px;
}

.psc-info__text{
  font-size: 20px;
  line-height: 1.6;
  color: #334155;
}

.psc-gost-decl{
  margin-top: 10px;
}

.psc-gost-decl__img{
  display: inline-block;
  max-width: 160px;
  height: auto;
}

.psc-sr-only{
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 980px){
  .seo-cube__grid{ grid-template-columns: 1fr; }
  .psc-scene{ width: 320px; margin: 0 auto; }
  .seo-cube__right{ text-align: left; }
}

@media (max-width: 420px){
  .psc-cube{ --s: 230px; }
  .psc-scene{ --cube: 230px; }
  .psc-scv{ right: 9px; bottom: 9px; width: 30px; height: 32px; }
}

/* build-in animation */
@keyframes psc-build-front{
  from { transform: rotateY(  0deg) translateZ(0); opacity: 0; }
  to   { transform: rotateY(  0deg) translateZ(calc(var(--s) / 2)); opacity: 1; }
}
@keyframes psc-build-back{
  from { transform: rotateY(180deg) translateZ(0); opacity: 0; }
  to   { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); opacity: 1; }
}
@keyframes psc-build-right{
  from { transform: rotateY( 90deg) translateZ(0); opacity: 0; }
  to   { transform: rotateY( 90deg) translateZ(calc(var(--s) / 2)); opacity: 1; }
}
@keyframes psc-build-left{
  from { transform: rotateY(-90deg) translateZ(0); opacity: 0; }
  to   { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); opacity: 1; }
}
@keyframes psc-build-top{
  from { transform: rotateX( 90deg) translateZ(0); opacity: 0; }
  to   { transform: rotateX( 90deg) translateZ(calc(var(--s) / 2)); opacity: 1; }
}
@keyframes psc-build-bottom{
  from { transform: rotateX(-90deg) translateZ(0); opacity: 0; }
  to   { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); opacity: 1; }
}

.psc-front  { animation: psc-build-front  720ms cubic-bezier(.22,.9,.25,1) 0ms   both; }
.psc-right  { animation: psc-build-right  720ms cubic-bezier(.22,.9,.25,1) 90ms  both; }
.psc-back   { animation: psc-build-back   720ms cubic-bezier(.22,.9,.25,1) 180ms both; }
.psc-left   { animation: psc-build-left   720ms cubic-bezier(.22,.9,.25,1) 270ms both; }
.psc-top    { animation: psc-build-top    720ms cubic-bezier(.22,.9,.25,1) 360ms both; }
.psc-bottom { animation: psc-build-bottom 720ms cubic-bezier(.22,.9,.25,1) 450ms both; }

@media (prefers-reduced-motion: reduce){
  .psc-front, .psc-right, .psc-back, .psc-left, .psc-top, .psc-bottom{
    animation: none !important;
    opacity: 1 !important;
  }
}