/* Torch Animation Styles */
:root {
    --fire-color: rgb(255, 80, 0);
    --fire-color-transparent: rgba(255, 80, 0, 0);
    --animation-duration: 1s;
    --particle-size: 5em;
}

@keyframes glowing {
    from { opacity: 0.5; }
    50% { opacity: 0.9; }
    to { opacity: 0.5; }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(0) scale(1);
    }
    25% { opacity: 1; }
    to {
        opacity: 0;
        transform: translateY(-10em) scale(0);
    }
}

.gradient_container {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.7) 0%, rgba(26, 26, 26, 0.6) 30%, rgba(13, 13, 13, 0.7) 70%, rgba(0, 0, 0, 0.8) 100%);

}

.header_new {
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header_title {
    color: #A79476;
    text-transform: uppercase;
    font-size: 60px;
    font-family: 'Unbounded';
    font-weight: 700;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.main_section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap:20px;
    height: 300px;
    flex-direction: column;
}

.main_section-description {
    display: flex;
    align-items: center;
    gap: 15px;
}
.main_section-description h2 {
    font-size: 72px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #A79476;
}
.main_section-description h2 span {
    font-size: 24px;
}

.main_section-description img {
    width: 100px;
}

.torch-container {
    margin-top: 400px;
    position: relative;
    max-width: 300px;
    /*margin: 0 auto;*/
}

.main_section-title {
    padding-top: 20px;
    height: 870px;
    width: calc(100vw - 1%);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    gap: 50px;
}

.main_section-title::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
            radial-gradient(circle at 20% 30%, rgba(25,25,25,0) 0%, transparent 50%),
            radial-gradient(circle at 80% 70%, rgba(15,15,15,0.4) 0%, transparent 50%);
    pointer-events: none;
}

.main_section-title a {
    padding: 40px 0 70px;
    width: 500px;
    text-decoration: none;
    color: #1F1307;
    font-size: 58px;
    display: flex;
    font-family: "Unbounded", sans-serif;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
    background: url("../images/photo_2025-08-14_18-04-22.png");
    background-size: cover;
    background-position: center;
    font-weight: 700;
    position: relative;
    transform: perspective(1000px) rotateX(20deg);
    transform-style: preserve-3d;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.main_section-title a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: inherit;
    transform: translateZ(-20px);
    filter: brightness(0.8);
    z-index: -1;
}

.main_section-title a span {
    text-align: center;
    font-size: 32px;
    display: block;
    transform: translateY(10px);
}

.main_section-title .action a {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: url("../images/photo_2025_08_14_18_04_22_jpg_upscayl_5x_ultrasharp_4x_upscayl_4x.png") no-repeat;
    background-size: cover;
    background-position: center;
    height: 150px;
    padding: 20px 30px 40px;
    margin-bottom: 150px;
    cursor: pointer;
}

.torch {
    width: 160px;
    position: relative;
    z-index: 1;
}

.fire {
    position: absolute;
    font-size: 24px;
    filter: blur(0.03em);
    -webkit-filter: blur(0.03em);
    width: 80%; /* Уменьшаем ширину контейнера пламени */
    height: 15em;
    top: -300px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
    pointer-events: none;
    overflow: hidden; /* Обрезаем выходящие за пределы частицы */
}

.particle {
    animation: rise var(--animation-duration) ease-in infinite;
    background-image: radial-gradient(var(--fire-color) 20%, var(--fire-color-transparent) 70%);
    border-radius: 50%;
    mix-blend-mode: screen;
    opacity: 0;
    position: absolute;
    bottom: 0;
    width: var(--particle-size);
    height: var(--particle-size);
    /* Центрируем частицы и делаем их уже */
    left: 50% !important;
    transform: translateX(-50%);
    margin: 0 auto;
}

/* Уменьшаем разброс частиц по горизонтали */
.fire .particle:nth-child(1) { animation-delay: 0.1s; transform: translateX(-40%); }
.fire .particle:nth-child(2) { animation-delay: 0.2s; transform: translateX(-30%); }
.fire .particle:nth-child(3) { animation-delay: 0.3s; transform: translateX(-20%); }
.fire .particle:nth-child(4) { animation-delay: 0.4s; transform: translateX(-10%); }
.fire .particle:nth-child(5) { animation-delay: 0.5s; transform: translateX(0%); }
.fire .particle:nth-child(6) { animation-delay: 0.6s; transform: translateX(10%); }
.fire .particle:nth-child(7) { animation-delay: 0.7s; transform: translateX(20%); }
.fire .particle:nth-child(8) { animation-delay: 0.8s; transform: translateX(30%); }
.fire .particle:nth-child(9) { animation-delay: 0.9s; transform: translateX(40%); }
.fire .particle:nth-child(10) { animation-delay: 1.0s; transform: translateX(-40%); }
.fire .particle:nth-child(11) { animation-delay: 0.1s; transform: translateX(-30%); }
.fire .particle:nth-child(12) { animation-delay: 0.2s; transform: translateX(-20%); }
.fire .particle:nth-child(13) { animation-delay: 0.3s; transform: translateX(-10%); }
.fire .particle:nth-child(14) { animation-delay: 0.4s; transform: translateX(0%); }
.fire .particle:nth-child(15) { animation-delay: 0.5s; transform: translateX(10%); }
.fire .particle:nth-child(16) { animation-delay: 0.6s; transform: translateX(20%); }
.fire .particle:nth-child(17) { animation-delay: 0.7s; transform: translateX(30%); }
.fire .particle:nth-child(18) { animation-delay: 0.8s; transform: translateX(40%); }
.fire .particle:nth-child(19) { animation-delay: 0.9s; transform: translateX(-40%); }

/* Обновляем анимацию для более плавного движения вверх */
@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(0) scale(1) translateX(var(--tx, -50%));
    }
    25% {
        opacity: 1;
    }
    to {
        opacity: 0;
        transform: translateY(-10em) scale(0.5) translateX(var(--tx, -50%));
    }
}

/* Responsive styles */
@media screen and (max-width: 1100px) {
    .torch-container { max-width: 200px; }
    .torch { width: 120px; }
    .fire {
        font-size: 20px;
        width: 110px;
        height: 10em;
    }
}

@media screen and (max-width: 1000px) {
    .torch-container { max-width: 100px; }
    .torch { width: 94px; }
    .fire {
        bottom: 50px;
        font-size: 14px;
        width: 40px;
        height: 4em;
        margin-left: 30px;
    }
}

/* Layout for torch blocks */
.torch_section-animated {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 20px 0 0;
    width: 85%;
    margin: 0 auto;
}

.lion_block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: url("../images/back_exch.png") no-repeat;
    background-size: 90%;
    background-position: center 100px;
    width: 100%;

}

.footer_new .roadmap_block {
    margin-top: 100px;
}

.torch_block {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
    height: 200px;
}