
.vr-section {
    width: 100%;
    padding: 140px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vr-wrapper {
    position: relative;
    width: 100%;
    max-width: 1280px;
    height: 480px;
    perspective: 1800px;
    margin: 0 auto;
}

.vr-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 480px;
    transform-style: preserve-3d;
    transform: translate(-50%, -50%);
}


.vr-card {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 400px;
    min-height: 200px;
    margin: -100px 0 0 -180px;

    padding: 28px 32px;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    transform-style: preserve-3d;
    backface-visibility: hidden;

    border-radius: 26px;
    color: white;

    font-size: 1.12rem;
    line-height: 1.35;
    letter-spacing: 0.015em;

    transition:
        opacity 0.35s ease,
        filter 0.35s ease,
        transform 0.45s cubic-bezier(.15,.85,.35,1),
        box-shadow 0.35s ease;
}


.vr-card-bg {
  position: absolute;
  inset: 0;
  border-radius: 26px;

  background:
      radial-gradient(circle at 0% 0%, rgba(0,234,241,0.22), transparent 60%),
      radial-gradient(circle at 100% 100%, rgba(225,80,255,0.30), transparent 60%),
      linear-gradient(135deg, rgba(20,24,48,0.97), rgba(10,10,22,1));

  border: 1px solid rgba(0,234,241,0.22);

  box-shadow:
      0 0 44px rgba(0,234,241,0.35),
      inset 0 0 26px rgba(79,71,255,0.38);

  backdrop-filter: blur(18px);

  transform: translateZ(0);
}


.vr-card-text {
    position: relative;
    z-index: 2;

    padding: 0 6px;

    display: flex;
    flex-direction: column;
    gap: 10px;

    line-height: 1.35;
    text-align: center;

    max-width: 100%;
    word-break: break-word;
    text-wrap: balance;

    transform: translateZ(70px);

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


.vr-card[data-front="1"] {
    filter: brightness(1.25);
    opacity: 1;

    transform: scale(1.18) translateZ(70px);

    box-shadow:
        0 0 75px rgba(0,234,241,0.75),
        inset 0 0 32px rgba(79,71,255,0.55);

    z-index: 100;
}

.vr-card[data-front="0"] {
    opacity: 0.55;
    filter: brightness(0.65);

    transform: scale(0.82);

    z-index: 1;
}


.vr-card::before {
    content: "";
    position: absolute;
    inset: -50%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.18),
        rgba(0,234,241,0.35),
        transparent
    );
    mix-blend-mode: screen;
    animation: holoSweep 7s linear infinite;
    opacity: 0.32;
    pointer-events: none;
}

@keyframes holoSweep {
    from { transform: translateX(-60%) rotate(10deg); }
    to   { transform: translateX(60%) rotate(10deg); }
}

@media (max-width: 768px) {

  .vr-section {
    padding: 60px 0 50px;
    overflow: visible;
  }

  .vr-wrapper {
      width: 100vw;        /* добавить */
    max-width: 100vw;
    height: auto;
    perspective: none !important;
    overflow: visible;
  }

  .vr-ring {
    position: relative;
    top: auto;
    left: auto;

    display: flex !important;
    flex-direction: row;
    gap: 20px;

    overflow-x: scroll;
    overflow-y: visible;

    width: 100%;
    padding: 12px 12px 30px;

    transform: none !important;
    -webkit-overflow-scrolling: touch;
  }

  .vr-card {
    position: relative !important;

    width: 90vw !important;
    min-width: 90vw !important;
    max-width: 540px;

    min-height: 300px !important;
    padding: 26px 28px !important;

    margin: 0 !important;

    opacity: 1 !important;
    filter: none !important;
    transform: none !important;

    border-radius: 28px;
  }

  .vr-card-bg,
  .vr-card-text {
    transform: none !important;
  }

  .vr-card::before {
    display: none !important;
  }
}
