/*! ADAT CUBE 3D · © 2026 ADAT. All rights reserved. · Developed by Semenkevich Oleg · sig 059c03a4571670477c2b */
/* ===== ADAT CUBE: объёмный кубик с двигающимися ячейками ===== */
.ac-scene { position: relative; perspective: 1100px; perspective-origin: 50% 38%; margin: 0 auto; }
.ac-tilt { position: absolute; left: 50%; top: 47%; width: 0; height: 0; transform-style: preserve-3d;
  transform: rotateX(-26deg) rotateY(-38deg); animation: ac-sway 9s ease-in-out infinite; }
.ac-core, .ac-pivot { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d; }
.ac-cubie { position: absolute; left: calc(var(--ac-s) / -2); top: calc(var(--ac-s) / -2);
  width: var(--ac-s); height: var(--ac-s); transform-style: preserve-3d; }
.ac-face { position: absolute; inset: 0; background: #16191C; border-radius: 9%;
  backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.ac-sticker { position: absolute; inset: 5.5%; border-radius: 15%; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7%;
  padding: 6%; text-align: center; color: #1F2326;
  background:
    linear-gradient(150deg, rgba(255,255,255,.62) 0%, rgba(255,255,255,.12) 38%, rgba(255,255,255,0) 52%, rgba(0,0,0,.08) 100%),
    var(--c, #CDD2D9);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), inset 0 -3px 6px rgba(0,0,0,.10); }
.ac-sticker::after { content: ""; position: absolute; left: -40%; top: -40%; width: 60%; height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  transform: rotate(25deg) translateX(-120%); pointer-events: none; }
.ac-scene:hover .ac-sticker::after { animation: ac-glint 1.6s ease-in-out 1; }
.ac-sticker i { font-size: calc(var(--ac-s) * .27); line-height: 1; opacity: .82; }
.ac-sticker span { font: 500 calc(var(--ac-s) * .105)/1.12 "Segoe UI", Inter, Arial, sans-serif;
  letter-spacing: -.01em; max-height: 3.4em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
@keyframes ac-sway { 0%,100% { transform: rotateX(-26deg) rotateY(-38deg); } 50% { transform: rotateX(-21deg) rotateY(-26deg); } }
@keyframes ac-glint { 0%,70% { transform: rotate(25deg) translateX(-120%); } 85%,100% { transform: rotate(25deg) translateX(320%); } }
@media (prefers-reduced-motion: reduce) { .ac-tilt, .ac-sticker::after { animation: none !important; } }

/* ===== Парящий кубик с волшебством (как в ADAT РЕЕСТР) ===== */
.adat-magic { position: relative; isolation: isolate; display: flex; justify-content: center; }
.adat-magic .m-aura { position: absolute; inset: 2% 4% 4%; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(184,214,148,.55), rgba(184,214,148,.16) 58%, transparent);
  animation: m-aura 3.6s ease-in-out infinite; }
.adat-magic .m-float { position: relative; animation: m-float 3.6s ease-in-out infinite; }
.adat-magic::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 1%; height: 9%; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(0,0,0,.28), rgba(0,0,0,0)); animation: m-shadow 3.6s ease-in-out infinite; pointer-events: none; }
@keyframes m-shadow { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.86); opacity: .7; } }
.adat-magic .m-spark { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); background: var(--c, #fff);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); opacity: 0; z-index: 2;
  animation: m-twinkle 2.8s ease-in-out var(--d) infinite; pointer-events: none; }
.adat-magic .m-dust { position: absolute; bottom: 10%; left: var(--x); width: 3px; height: 3px; border-radius: 50%; z-index: 2;
  background: #E6F4D2; box-shadow: 0 0 6px #B8D694; opacity: 0; animation: m-dust 4.2s linear var(--d) infinite; pointer-events: none; }
@keyframes m-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes m-aura { 0%,100% { transform: scale(.96); opacity: .65; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes m-twinkle { 0%,100% { opacity: 0; transform: scale(.3) rotate(0); } 45% { opacity: 1; transform: scale(1) rotate(45deg); } 70% { opacity: .2; transform: scale(.6) rotate(90deg); } }
@keyframes m-dust { 0% { opacity: 0; transform: translate(0,0); } 15% { opacity: .95; } 100% { opacity: 0; transform: translate(var(--dx, 6px), -120px); } }
@media (prefers-reduced-motion: reduce) { .adat-magic * { animation: none !important; } }

/* вне экрана и в фоновой вкладке анимации стоят */
.ac-off, .ac-off *, .ac-off::after { animation-play-state: paused !important; }
