
.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.benefit-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
    color: #B0B0B0;
}

.benefit-item:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #8b5cf6;
    font-weight: bold;
}


.header-shape {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: linear-gradient(45deg, #6366f1 0%, #d946ef 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: 0;
    opacity: 0.1;
    filter: blur(60px);
}

  .hero-typed {
    display: inline;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
    vertical-align: bottom;
    position: relative;
    transition: opacity 0.3s ease; /* ✅ плавность при смене текста */
  }

  .hero-typed::after {
    content: "";
    display: inline-block;
    width: 0.12em;
    height: 1em;
    background: rgba(255, 255, 255, 0.3);
    margin-left: 1px;
    animation: blink-caret 0.75s step-end infinite;
    vertical-align: bottom;
  }

  .hero-typed.hidden {
    opacity: 0; /* скрытие текста при смене */
  }
  @keyframes blink-caret {
    50% { opacity: 0; }
  }

@media (min-width: 1081px) {
    .services-subtitle {
        animation: fade-in 1.5s ease-in;
    }

    /* Анимация fade-in */
    @keyframes fade-in {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .header-shape {

        animation: morph 15s linear infinite alternate;
    }

    @keyframes morph {
        0% {
            border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        }

        50% {
            border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
        }

        100% {
            border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        }
    }
}



.shape {
    position: absolute;
    opacity: 0.2;
    z-index: 0;
}

.shape-1 {
    width: 100px;
    height: 100px;
    border: 2px solid #6366f1;
    transform: rotate(45deg);
    top: 20%;
    left: 10%;
    animation: rotate 20s linear infinite;
}

.shape-2 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 2px solid #8b5cf6;
    top: 60%;
    right: 5%;
    animation: float 15s ease-in-out infinite;
}

.shape-3 {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(217, 70, 239, 0.5);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    bottom: 10%;
    left: 20%;
    animation: morph 10s linear infinite alternate;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    z-index: 0;
}


.chart-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Базовые стили */

.section-service  {
    position: relative;
    height: 90dvh;
    overflow: hidden;
    display: flex;
    align-items: center;    /* вертикальное центрирование */
    justify-content: center;/* опционально: горизонтальное центрирование */
}

.section-service .container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}


.text-wrapper {
    text-align: center;
    margin-bottom: 3rem;
}

.overflow-wrapper {
    overflow: hidden;
    margin-bottom: 1rem;
}

.services-heading {
    font-size: 2.25rem;
    font-weight: bold;
    line-height: 1.25;
}

@media (min-width: 768px) {
    .services-heading {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .services-heading {
        font-size: 3.75rem;
    }
}

.services-subtitle {
  font-size: 1.25rem;     /* text-xl — базовый размер для больших экранов */
  color: #d1d5db;   
    max-width: 768px;
    min-height: 2.5em; /* фиксируем высоту */
    margin: 0 auto;
}


/* Куб и перспектива */
.cube-container {
    margin-top: 3rem;
    position: relative;
    height: 8rem;
    width: 100%;
    perspective: 1000px;
}

.cube-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cube {
    position: relative;
    width: 6rem;
    height: 6rem;
    transform-style: preserve-3d;
    animation: rotateCube 8s infinite linear;

}

@keyframes rotateCube {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

.cube-face {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #6366f1, #F81556);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cube-face-front {
    transform: translateZ(3rem);
}

.cube-face-back {
    transform: rotateY(180deg) translateZ(3rem);
}

.cube-face-right {
    transform: rotateY(90deg) translateZ(3rem);
}

.cube-face-left {
    transform: rotateY(-90deg) translateZ(3rem);
}

.cube-face-top {
    transform: rotateX(90deg) translateZ(3rem);
}

.cube-face-bottom {
    transform: rotateX(-90deg) translateZ(3rem);
}

.icon {
    font-size: 1.75rem;
    color: white;
}

.cube-face {
    display: flex;
    align-items: center;
    justify-content: center;
}
.cube-face .icon {
    width: 48px;
    height: 48px;
    display: block;
}

/* иконки рисуются обводкой; меняют цвет через color на родителе */
.cube-face {
    color: #222;
}

/* можно переопределять */
.icon {
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  color: #fff; /* можешь поменять на свой брендовый цвет */
  animation: bounce 2s infinite;
  transition: transform 0.3s ease;
}

.scroll-down:hover {
  transform: translateX(-50%) scale(1.2);
  color: #db2777;
}

/* 🔹 Анимация "прыжка" */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-8px);
  }
  60% {
    transform: translateX(-50%) translateY(-4px);
  }
}
