/*preloader start*/
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #181818;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    will-change: opacity, visibility; 
}
.preloader--hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.preloader__container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 5px;
    transform: translateZ(0);
}
.preloader__cube {
    width: 25px;
    height: 25px;
    background-color: #2A2A2C;
    border-radius: 3px;
    transform: translateZ(0);  
}
.preloader__cube_1 {
    animation: preloader-animation 2s infinite;
}
.preloader__cube_2 {
    animation: preloader-animation 2s infinite 0.5s;
}
.preloader__cube_3 {
    animation: preloader-animation 2s infinite 1s;
}
.preloader__cube_4 {
    animation: preloader-animation 2s infinite 1.5s;
}
@keyframes preloader-animation {
    0%, 50%, 100% {
        background-color: #2A2A2C;
    }
    25% {
        background-color: #ff1493;
    }
}
/*preloader end*/

/*btn pink start*/
.btn_pink {
    position: relative;
    overflow: hidden;
    transform: translateZ(0);  
}

.btn_pink::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent);
    animation: white-shine 8s ease-in-out infinite;
    will-change: left;  
    transform: translateZ(0);
}

@keyframes white-shine {
    0% {
        left: -100%;
    }
    20% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/*btn pink end*/

/*select user start*/
.select-user_open .select-user__header:before {
    animation: header-icon-scale 0.3s ease-in;
    transform-origin: center; /* Улучшаем производительность трансформации */
}
@keyframes header-icon-scale {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}
/*select user end*/

/*Анимация блоков на главной странице start*/
.headline__btn-link:after {
    animation: arrow-right 1s infinite;
    will-change: transform;  
}
@keyframes arrow-right {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(3px); }
}
/*Анимация блоков на главной странице end*/

/*BALANCE start*/
.volume-balance__ring-animation {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
    text-align: center;
    width: 100%;
    height: 100%;
    background: url(../img/effect/effect-circle-animation-balance.png) no-repeat 49% -13px;
    z-index: -1;
    display: block;
}

.ring-animation__container {
    position: relative;
    width: 336px;
    height: 383px;
    margin: 0 auto;
    background-image: url(../img/effect/effect-balance-ring.svg);
    transform: translateZ(0);
}
.ring-animation__dot {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    background-color: #ff1493;
    border-radius: 100%;
    opacity: 0;
    will-change: transform, opacity;
    transform: translateZ(0);
}
/*BALANCE end*/

/*Анимация в баннере start*/
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 150px;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    transform: translateZ(0);  
}

/*ПРОФИЛЬ ГАЛОЧКА (СКОПИРОВАТЬ ССЫЛКУ)*/
.checkmark {
    width: 50px;
    height: 50px;
    margin: 0 auto;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    display: none;
    transform: translateZ(0);
}
.checkmark.link-copy__checkmark_show {
    display: block;
}

.check {
    transform-origin: 50% 50%;
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    stroke-width: 2;
    stroke-miterlimit: 9;
    stroke: #FF1493;
    fill: none;
    animation: check 1s cubic-bezier(0.65, 0, 0.45, 1) 0.1s forwards;
    will-change: stroke-dashoffset;  
}

@keyframes check {
    100% {
        stroke-dashoffset: 0;
    }
}
/*Анимация*/

/*Анимация создать стиль start*/
.create-style__animation:after {
    position: absolute;
    top: 60%;
    left: 40%;
    animation: star-circle-motion 3s linear infinite;
    will-change: transform;  
    transform: translateZ(0);
}

@keyframes star-circle-motion {
    0% {
        top: 50%;
        left: 40%;
        transform: scale(1) translateZ(0);
     }
    35% {
        top: 30%;
        left: 30%;
        transform: scale(0.6) rotate(-90deg) translateZ(0);
    }
    65% {
        top: 30%;
        left: 50%;
        transform: scale(0.3) rotate(-180deg) translateZ(0);
    }
    100% {
        top: 50%;
        left: 40%;
        transform: scale(1) rotate(-360deg) translateZ(0);
    }
}
/*Анимация создать стиль end*/

/*Анимация монетки start*/
.invite__header-coin:after {
    content: "";
    width: 20px;
    height: 20px;
    display: block;
    background-image: url(../img/effect/effect-coin-profile.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    animation: coinCircleAnimation 4s infinite linear;
    will-change: transform, filter, opacity;
    transform: translateZ(0);
}

@keyframes coinCircleAnimation {
    0% {
        transform:
                translate(-50%, -50%)
                rotate(0deg)
                translateY(-45px)
                rotate(0deg)
                scale(1)
                translateZ(0);
        filter: blur(0px);
        opacity: 1;
    }
    25% {
        transform:
                translate(-50%, -50%)
                rotate(90deg)
                translateY(-45px)
                rotate(-90deg)
                scale(0.7)
                translateZ(0);
        filter: blur(2px);
        opacity: 0.8;
    }
    50% {
        transform:
                translate(-50%, -50%)
                rotate(180deg)
                translateY(-45px)
                rotate(-180deg)
                scale(1.2)
                translateZ(0);
        filter: blur(0px);
        opacity: 1;
    }
    75% {
        transform:
                translate(-50%, -50%)
                rotate(270deg)
                translateY(-45px)
                rotate(-270deg)
                scale(0.8)
                translateZ(0);
        filter: blur(3px);
        opacity: 0.7;
    }
    100% {
        transform:
                translate(-50%, -50%)
                rotate(360deg)
                translateY(-45px)
                rotate(-360deg)
                scale(1)
                translateZ(0);
        filter: blur(0px);
        opacity: 1;
    }
}

/*Миниатюра в экспертах*/
.miniature {
    animation: miniature-animation 6s infinite;
    will-change: transform, opacity;  
    transform: translateZ(0);
}

@keyframes miniature-animation {
    0%, 100% {
        transform: scale(0);
        opacity: 0;
    }
    5%, 95% {
        transform: scale(1.2);
        opacity: 1;
    }
    10%, 90% {
        transform: scale(1);
        opacity: 1;
    }
}

/*Стрелочка*/
.expert__arrow-svg {
    width: 30px;
    height: 65px;
    margin: 0 auto;
    display: block;
    position: absolute;
    top: 31px;
    left: 48px;
    transform: rotate(29deg) translateZ(0);
    max-width: 100px;
    max-height: 124px;
}
.expert__arrow-svg .draw-arrow {
    stroke-width: 4;
    stroke: #FF1493;
    fill: none;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation-duration: 6s;
    animation-fill-mode: forwards;
    animation-name: draw;
    animation-iteration-count: infinite;
    will-change: stroke-dashoffset, opacity;  
}
.expert__arrow-svg .draw-arrow.tail-1 {
    animation-delay: 0.3s;
    animation-timing-function: linear;
    animation-name: draw-tail-1;
}
.expert__arrow-svg .draw-arrow.tail-2 {
    animation-delay: 0.5s;
    animation-timing-function: linear;
    animation-name: draw-tail-2;
}

/* Основная анимация для основной стрелки */
@keyframes draw {
    0%, 95%, 100% {
        stroke-dashoffset: 400;
        opacity: 0;
    }
    10%, 90% {
        opacity: 1;
    }
    40% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

/* Анимация для tail-1 - мгновенное исчезновение */
@keyframes draw-tail-1 {
    0%, 87%, 100% {
        stroke-dashoffset: 400;
        opacity: 0;
    }
    10%, 86% {
        opacity: 1;
    }
    40% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

/* Анимация для tail-2 - мгновенное исчезновение */
@keyframes draw-tail-2 {
    0%, 84%, 100% {
        stroke-dashoffset: 400;
        opacity: 0;
    }
    10%, 83% {
        opacity: 1;
    }
    40% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}
/*Анимация в баннере эксперты end*/

/*Анимация в балансе*/
.ring-container {
    position: relative;
    width: 336px;
    height: 383px;
    transform: translateZ(0);
}

.dot {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    background-color: #ff1493;
    border-radius: 100%;
    opacity: 0;
    will-change: transform, opacity;
    transform: translateZ(0);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Подарок анимация для текста в баннере на главной */
.banner__title-animation {
    position: relative;
    display: inline-block;
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
    transform: translateZ(0);
        text-shadow: 0px 0px 20px rgba(255, 20, 147, 1), 0px 0px 24px rgba(255, 20, 147, 1), 0px 0px 27px rgba(255, 20, 147, 0.8), 0px 0px 35px rgba(255, 20, 147, 0.5);
}
.banner__title-animation:before {
    /* content: ''; */
    width: 120%;
    height: 45px;
    position: absolute;
    left: -41px;
    top: -9px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
    background-image: url(../img/images/banner__title-animation.png);
    z-index: -1;
    transform: translateZ(0);
}

/* ИИ сью */
.sue-ai__logo:after {
    animation: pulseSue 5s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
}
@keyframes pulseSue {
   0% {
        transform: scale(1);
    }
    5% {
        transform: scale(1.2);
    }
    10% {
        transform: scale(1);
    }
    15% {
        transform: scale(1.25);
    }
    25% {
        transform: scale(1.05);
    }
    35% {
        transform: scale(1.3);
    }
    45% {
        transform: scale(1.1);
    }
    55% {
        transform: scale(1.35);
    }
    65% {
        transform: scale(1.15);
    }
    75% {
        transform: scale(1.4);
    }
    85% {
        transform: scale(1.2);
    }
    95% {
        transform: scale(1.45);
    }
    100% {
        transform: scale(1);
    }
}



/* ГЕНЕРАЦИЯ */

.load-wrapper {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -100px;
  width: 200px;
  height: 200px;
  background-color: transparent;
  border: none;
}
.load-wrapper .box-wrap {
  width: 70%;
  height: 70%;
  margin: calc((100% - 70%) / 2) calc((100% - 70%) / 2);
  position: relative;
  transform: rotate(-45deg);
}
.load-wrapper .box-wrap .box {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  background: rgba(135, 0, 0, 0.6);
  background: linear-gradient(
    to right,
    #141562,
    #486fbc,
    #eab5a1,
    #8dd6ff,
    #4973c9,
    #d07ca7,
    #f4915e,
    #f5919e,
    #b46f89,
    #141562,
    #486fbc
  );
  background-position: 0% 50%;
  background-size: 1000% 1000%;
  visibility: hidden;
}
.load-wrapper .box-wrap .box.one {
  animation: moveGradient 15s infinite, oneMove 3.5s infinite;
}
.load-wrapper .box-wrap .box.two {
  animation: moveGradient 15s infinite, twoMove 3.5s 0.15s infinite;
}
.load-wrapper .box-wrap .box.three {
  animation: moveGradient 15s infinite, threeMove 3.5s 0.3s infinite;
}
.load-wrapper .box-wrap .box.four {
  animation: moveGradient 15s infinite, fourMove 3.5s 0.575s infinite;
}
.load-wrapper .box-wrap .box.five {
  animation: moveGradient 15s infinite, fiveMove 3.5s 0.725s infinite;
}
.load-wrapper .box-wrap .box.six {
  animation: moveGradient 15s infinite, sixMove 3.5s 0.875s infinite;
}

@keyframes moveGradient {
  to {
    background-position: 100% 50%;
  }
}

@keyframes oneMove {
  0% {
    visibility: visible;
    clip-path: inset(0% 35% 70% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  14.2857% {
    clip-path: inset(0% 35% 70% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  28.5714% {
    clip-path: inset(35% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  42.8571% {
    clip-path: inset(35% 70% 35% 0 round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  57.1428% {
    clip-path: inset(35% 70% 35% 0 round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  71.4285% {
    clip-path: inset(0% 70% 70% 0 round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  85.7142% {
    clip-path: inset(0% 70% 70% 0 round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  100% {
    clip-path: inset(0% 35% 70% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
}

@keyframes twoMove {
  0% {
    visibility: visible;
    clip-path: inset(0% 70% 70% 0 round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  14.2857% {
    clip-path: inset(0% 70% 70% 0 round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  28.5714% {
    clip-path: inset(0% 35% 70% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  42.8571% {
    clip-path: inset(0% 35% 70% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  57.1428% {
    clip-path: inset(35% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  71.4285% {
    clip-path: inset(35% 70% 35% 0 round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  85.7142% {
    clip-path: inset(35% 70% 35% 0 round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  100% {
    clip-path: inset(0% 70% 70% 0 round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
}

@keyframes threeMove {
  0% {
    visibility: visible;
    clip-path: inset(35% 70% 35% 0 round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  14.2857% {
    clip-path: inset(35% 70% 35% 0 round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  28.5714% {
    clip-path: inset(0% 70% 70% 0 round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  42.8571% {
    clip-path: inset(0% 70% 70% 0 round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  57.1428% {
    clip-path: inset(0% 35% 70% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  71.4285% {
    clip-path: inset(0% 35% 70% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  85.7142% {
    clip-path: inset(35% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  100% {
    clip-path: inset(35% 70% 35% 0 round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
}

@keyframes fourMove {
  0% {
    visibility: visible;
    clip-path: inset(35% 0% 35% 70% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  14.2857% {
    clip-path: inset(35% 0% 35% 70% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  28.5714% {
    clip-path: inset(35% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  42.8571% {
    clip-path: inset(70% 35% 0% 35% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  57.1428% {
    clip-path: inset(70% 35% 0% 35% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  71.4285% {
    clip-path: inset(70% 0 0 70% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  85.7142% {
    clip-path: inset(70% 0 0 70% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  100% {
    clip-path: inset(35% 0% 35% 70% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
}

@keyframes fiveMove {
  0% {
    visibility: visible;
    clip-path: inset(70% 0 0 70% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  14.2857% {
    clip-path: inset(70% 0 0 70% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  28.5714% {
    clip-path: inset(35% 0% 35% 70% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  42.8571% {
    clip-path: inset(35% 0% 35% 70% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  57.1428% {
    clip-path: inset(35% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  71.4285% {
    clip-path: inset(70% 35% 0% 35% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  85.7142% {
    clip-path: inset(70% 35% 0% 35% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  100% {
    clip-path: inset(70% 0 0 70% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
}

@keyframes sixMove {
  0% {
    visibility: visible;
    clip-path: inset(70% 35% 0% 35% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  14.2857% {
    clip-path: inset(70% 35% 0% 35% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  28.5714% {
    clip-path: inset(70% 0 0 70% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  42.8571% {
    clip-path: inset(70% 0 0 70% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  57.1428% {
    clip-path: inset(35% 0% 35% 70% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  71.4285% {
    clip-path: inset(35% 0% 35% 70% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  85.7142% {
    clip-path: inset(35% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
  100% {
    clip-path: inset(70% 35% 0% 35% round 5%);
    animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  }
}


.lenta__loader-status-done {
  display: none;
  position: absolute;
  height: 100%;
  margin: auto;
  right: 0;
  left: 0;
  top: 0;
  bottom: 0;
}

.lenta__loader-status-done.active {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.checkmark-container {
  width: 70px;
  height: 70px;
  position: relative;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkmark-svg {
  width: 60px;
  height: 60px;
}

.checkmark-circle {
  stroke: white;
  stroke-width: 4;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  fill: none;
  animation: checkmarkCircle 0.8s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
  stroke: white;
  stroke-width: 6;
  stroke-dasharray: 46;
  stroke-dashoffset: 46;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: checkmarkCheck 0.6s 0.4s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.lenta__loader-status-done span {
  color: white;
  font-weight: 800;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 4px;
  
}

@keyframes checkmarkCircle {
  0% {
    stroke-dashoffset: 166;
    opacity: 0.5;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

@keyframes checkmarkCheck {
  0% {
    stroke-dashoffset: 48;
    opacity: 0.5;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

.lenta__loader-status-done.active {
  animation: fadeInScale 0.5s ease-out;
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.checkmark-circle, .checkmark-check {
  stroke: #199919;
}

.lenta__loader-status-done span {
  color: #199919;
}
