/* Декоративные элементы фона сертификата - для страницы просмотра */

/* Контейнер для декоративных элементов */
.certificate-decorations {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* Декоративные круги */
.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    filter: blur(20px);
    animation: float-circle 15s ease-in-out infinite;
}

.decoration-circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: 10%;
    animation-delay: 0s;
}

.decoration-circle-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: 15%;
    animation-delay: 3s;
}

.decoration-circle-3 {
    width: 250px;
    height: 250px;
    top: 40%;
    left: -80px;
    animation-delay: 6s;
}

.decoration-circle-4 {
    width: 180px;
    height: 180px;
    bottom: 15%;
    left: 5%;
    animation-delay: 9s;
}

/* Декоративные линии */
.decoration-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    height: 2px;
    animation: line-move 20s linear infinite;
}

.decoration-line-1 {
    width: 400px;
    top: 25%;
    left: -100px;
    transform: rotate(45deg);
    animation-delay: 0s;
}

.decoration-line-2 {
    width: 350px;
    bottom: 30%;
    right: -80px;
    transform: rotate(-45deg);
    animation-delay: 5s;
}

.decoration-line-3 {
    width: 300px;
    top: 70%;
    left: 40%;
    transform: rotate(90deg);
    animation-delay: 10s;
}

/* Декоративные точки */
.decoration-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: 0 0, 25px 25px;
    opacity: 0.3;
    animation: dots-move 30s linear infinite;
}

/* Декоративные блестки */
.decoration-sparkle {
    position: absolute;
    font-size: 24px;
    opacity: 0;
    animation: sparkle 4s ease-in-out infinite;
}

.decoration-sparkle-1 {
    top: 20%;
    left: 70%;
    animation-delay: 0s;
}

.decoration-sparkle-2 {
    top: 60%;
    left: 25%;
    animation-delay: 1.5s;
}

.decoration-sparkle-3 {
    bottom: 20%;
    right: 20%;
    animation-delay: 3s;
}

.decoration-sparkle-4 {
    top: 45%;
    right: 10%;
    animation-delay: 2s;
    font-size: 20px;
}

.decoration-sparkle-5 {
    top: 75%;
    left: 60%;
    animation-delay: 4.5s;
    font-size: 18px;
}

/* Декоративные волны */
.decoration-wave {
    position: absolute;
    width: 200%;
    height: 100px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.08) 50%, 
        transparent
    );
    border-radius: 50%;
    animation: wave-move 12s ease-in-out infinite;
    filter: blur(10px);
}

.decoration-wave-1 {
    top: -50px;
    left: -50%;
    animation-delay: 0s;
}

.decoration-wave-2 {
    bottom: -50px;
    right: -50%;
    animation-delay: 6s;
}

/* Геометрические формы */
.decoration-geometric {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.1);
    animation: geometric-rotate 20s linear infinite;
}

.decoration-geometric-1 {
    width: 120px;
    height: 120px;
    top: 15%;
    right: 10%;
    border-radius: 20% 40%;
    transform: rotate(45deg);
    animation-delay: 0s;
}

.decoration-geometric-2 {
    width: 80px;
    height: 80px;
    bottom: 25%;
    left: 15%;
    border-radius: 50%;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation-delay: 7s;
}

.decoration-geometric-3 {
    width: 100px;
    height: 100px;
    top: 55%;
    right: 25%;
    border-radius: 30%;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    animation-delay: 14s;
}

/* Декоративные частицы */
.decoration-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.15) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.12) 1.5px, transparent 1.5px);
    background-size: 80px 80px, 60px 60px, 100px 100px;
    background-position: 0 0, 40px 40px, 20px 20px;
    opacity: 0.4;
    animation: particles-float 25s ease-in-out infinite;
}

/* Эффекты свечения */
.decoration-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(30px);
    animation: glow-pulse 8s ease-in-out infinite;
}

.decoration-glow-1 {
    width: 250px;
    height: 250px;
    top: 10%;
    right: 5%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    animation-delay: 0s;
}

.decoration-glow-2 {
    width: 200px;
    height: 200px;
    bottom: 10%;
    left: 8%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    animation-delay: 4s;
}

/* Кристаллы */
.decoration-crystal {
    position: absolute;
    font-size: 32px;
    opacity: 0;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    animation: crystal-shine 5s ease-in-out infinite;
}

.decoration-crystal-1 {
    top: 30%;
    left: 12%;
    animation-delay: 0s;
}

.decoration-crystal-2 {
    bottom: 35%;
    right: 12%;
    animation-delay: 2.5s;
}

/* Анимации */
@keyframes float-circle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    33% {
        transform: translate(30px, -20px) scale(1.1);
        opacity: 0.8;
    }
    66% {
        transform: translate(-20px, 30px) scale(0.9);
        opacity: 0.5;
    }
}

@keyframes line-move {
    0% {
        transform: translateX(-100%) rotate(45deg);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateX(600%) rotate(45deg);
        opacity: 0;
    }
}

@keyframes dots-move {
    0% {
        background-position: 0 0, 25px 25px;
    }
    100% {
        background-position: 50px 50px, 75px 75px;
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.5) rotate(180deg);
    }
}

@keyframes wave-move {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.3;
    }
    50% {
        transform: translateX(-50%) translateY(20px);
        opacity: 0.6;
    }
}

@keyframes geometric-rotate {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: rotate(180deg) scale(1.2);
        opacity: 0.6;
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 0.3;
    }
}

@keyframes particles-float {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.3;
    }
    50% {
        transform: translate(20px, -20px);
        opacity: 0.6;
    }
}

@keyframes glow-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

@keyframes crystal-shine {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5) rotate(0deg);
    }
    25% {
        opacity: 0.8;
        transform: scale(1.2) rotate(90deg);
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(180deg);
    }
    75% {
        opacity: 0.8;
        transform: scale(1.2) rotate(270deg);
    }
}

/* Убеждаемся, что контент поверх декораций */
.certificate-content {
    position: relative;
    z-index: 2;
}











