*,
*:before,
*:after {
    box-sizing: border-box;
}


/* Для Firefox */
html {
    scrollbar-width: thin; /* 'thin' или 'auto' */
    scrollbar-color: #5a528a #1e1237; /* Бегунок / Фон */
}

/* Для Chrome, Safari, Edge (WebKit) */
body::-webkit-scrollbar {
    width: 12px; /* Ширина скроллбара */
}

body::-webkit-scrollbar-track {
    background: #1e1237; /* Цвет фона (как у body) */
    border-radius: 10px;
}

body::-webkit-scrollbar-thumb {
    background-color: #5a528a; /* Цвет бегунка (в тон) */
    border-radius: 10px; /* Закругление */
    border: 3px solid #1e1237; /* Отступ, создающий "плавающий" эффект */
}

body::-webkit-scrollbar-thumb:hover {
    background-color: #7c3aed; /* Ярче при наведении (из градиента прелодера) */
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #200843;
    color: #d2d3ff;
    perspective: 1500px;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

/* --- HEADER --- */
.header-section {
    position: sticky;
    top: 10px;
    width: 100%;
    z-index: 999;
    transition: all ease 0.3s;
    background-color: transparent;
    padding: 10px 70px;
}

.scrolled_active {
    top: 0;
    padding-top: 5px;
    padding-bottom: 5px;
    background-color: #180634;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.logo_header {
    max-width: 225px;
}

.logo_header img {
    width: 100%;
    display: block;
}

.header_el {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn_header {
    text-align: right;
}

.mobile-menu {
    display: none;
}

.mobile-menu i{
    font-size:35px;
    cursor:pointer;
}

/* --- GRADIENT BUTTONS --- */
.gradient-button {
    display: inline-block;
    padding: 9px 25px;
    margin-left: 10px;
    border: none;
    border-radius: 30px;
    color: #fff;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    z-index: 1;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
}

.gradient-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gradient-button.green {
    background: linear-gradient(135deg, #05b169, #2E7D32);
}
.gradient-button.red {
    background: linear-gradient(135deg, #ff5200, #a33603); 
}
.gradient-button.red:hover {
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.5); 
}
.gradient-button.green::before {
    background: linear-gradient(135deg, #05b169, #11ad6c, #2E7D32);
    transform: translateX(-100%);
}
.gradient-button.green:hover {
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
}
.gradient-button.green:hover::before {
    transform: translateX(0);
}

.gradient-button.violet {
    background: linear-gradient(to right, #6C2BFF, #4A00E0, #8E2DE2, #A56EFF);
    background-size: 200% 100%;
    background-position: 100% 0;
    transition: background-position 0.6s ease, box-shadow 0.4s ease;
    box-shadow: 0 4px 15px rgba(142, 45, 226, 0.3);
}
.gradient-button.violet:hover {
    background-position: 0 0;
    box-shadow: 0 0 30px rgba(165, 110, 255, 0.8);
    color: #FFF;
}
.gradient-button.violet::before {
    content: none;
}


.frog-container {
    position: relative;
    background-size: cover;
    background-position: center center;
    background-image: url(/static/img/back12.png);
    padding: 50px 50px;
}

.frog-container:after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 1;
    background-color: hsl(263.44deg 74.42% 16.86% / 62%);
}

.frog-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    z-index: 2;
    max-width: 1200px; /* Ограничиваем ширину контента */
    margin: 0 auto;
}

.frog-box > div {
    width: 50%;
    overflow: hidden;
}

.title-frog h1 {
    color: #fff;
    font-size: 50px;
}

.icon-btn {
    margin-right: 7px;
}

/* --- 3D CAROUSEL --- */
.carousel-scene {
    width: 100%;
    max-width: 550px;
    height: 550px;
    perspective: 1500px;
    margin: 0 auto;
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

.central-planet {
    background-repeat: no-repeat;
    background-image: url('/static/img/logo2.png');
    width: 100%;
    height: 100%;
    background-size: 30%;
    background-position: center;
    transform-style: preserve-3d;
    animation: pulse-planet 8s ease-in-out infinite;
}

@keyframes pulse-planet {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}


.coin-item {
    position: absolute;
    width: 90px;
    height: 90px;
    left: calc(50% - 45px);
    top: calc(50% - 45px);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    backface-visibility: hidden; /* Убирает мерцание при анимации */
}

.coin-item img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

/* --- ADVANTAGES SECTION --- */
.h3_title {
    color: #fff;
    text-transform: uppercase;
    font-size: 23px;
    text-align: center;
    margin-bottom: 40px;
}

.adv_wallet {
    padding: 50px 70px;
}

.adv-carousel-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    cursor: grab;
    padding: 1rem 0;
}
.adv-carousel-wrapper:active {
    cursor: grabbing;
}

.adv {
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    user-select: none;
}

.adv .adv_item {
    padding: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url('/static/img/rank-slider.png');
    min-height: 285px;
    width: 100%;
    line-height: 25px;
    flex-shrink: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
}

.adv .adv_item h3 {
    margin: 0;
    max-width: 250px;
    font-size: 18px;
    font-weight: normal;
    color: #05b169;
    text-align: center;
}

.adv .adv_item h4 {
    font-size: 16px;
    max-width: 250px;
    margin: 5px 0 0 0;
    font-weight: normal;
    text-align: center;
}

/* --- CRYPTIAM SECTION --- */
.cryptiam_container {
    padding: 50px 70px;
    overflow: hidden;
}

.cryptiam {
    position: relative;
    display: flex;
    width:100%;
    min-height:500px;
    max-width: 1200px;
    margin: 0 auto;
}

.crp {
    display:flex;
    z-index:2;
    width:100%;
    align-self:center;
}

.cryptiam:after {
    content:'';
    position:absolute;
    left:240px;
    right: -100vw;
    top:0;
    bottom: 0;
    z-index:-1;
    min-height:inherit;
    background-color:#381b64;
    border-radius:10px;
}

.crp > div {
    width:50%;
    flex-shrink:0;
}

.crp > div:first-child {
    padding:20px;
    align-self: center;
}

.crp img {
    width:100%;
    height:100%;
    border-radius:30px;
}

.crp_info h5 {
    color:#11a259;
    font-size:22px;
    margin:0;
    text-transform:uppercase;
}

.crp_info h2 {
    font-size:36px;
    font-weight:normal;
    margin-top:10px;
    color: #fff;
}
.crp_info p {
    line-height:25px;
}

.ul_check {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

.ul_check li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.cryptiam li::before {
    content: '\2714';
    position: absolute;
    left: 0;
    top: 0;
    color: #4ade80;
    font-weight: bold;
    font-size: 1.2rem;
}

/* --- TOKEN CARD SECTION --- */
.token_card {
    padding: 30px 0;
}

.card_box {
    display:flex;
    flex-wrap:wrap;
    gap:30px;
    justify-content:center;
}

.card_box > div {
    min-height:300px;
    width: 360px;
    color:#fff;
    border-radius:10px;
    transition: all 0.3s ease;
    background-size:contain;
    background-repeat:no-repeat;
    background-position:top 140px center;
    background-image:url('/static/img/bg-1.png');
}

.icon_card_token {
    text-align:center;
    padding-top:40px;
}

.card_box .title_card {
    padding-top:20px;
    font-size:24px;
    text-align:center;
}

.card_box .subtitle_card {
    text-align:center;
    padding-top:10px;
    line-height:23px;
    padding-bottom:40px;
}

.token_card,.maps_box {
    padding-top:30px;
}


.card_box > div:hover {
    transform:scale(1.05);
}

.card_box .item1 {
    background-color:#e8606f;
}

.card_box .item2 {
    background-color:#f2924c;
}

.card_box .item3 {
    background-color:#5fd867;
}

.card_box .item4 {
    background-color:#c660e8;
}

.card_box .item5 {
    background-color:#6f4cf2;
}

/* --- ROADMAP SECTION --- */
.road_map {
    background-image: url('/static/img/road-map-shape3.png');
    background-size: contain;
    background-repeat:no-repeat;
    background-position: center center;
}

.roadmap-container {
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom:50px;
    position: relative;
}


.roadmap-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    background-color: #202987; /* Синий цвет линии */
    height: 100%;
    transform: translateX(-50%);
    z-index: 1;
}

.roadmap-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Выравнивание по верху для блоков разной высоты */
    margin-bottom: 80px;
    position: relative;
    z-index: 2; /* Контент над линией */
}

/* Последний элемент без нижнего отступа */
.roadmap-item:last-child {
    margin-bottom: 0;
}

/* Контент слева и справа */
.roadmap-content {
    width: calc(50% - 50px); /* Оставляем 100px пространства в центре */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.roadmap-content:hover {
    transform: translateY(-5px);
}

.roadmap-item .roadmap-content:first-child {
    text-align: right;
}

.roadmap-item .roadmap-content:last-child {
    text-align: left;
}

.roadmap-point {
    width: 18px;
    height: 18px;
    background-color: #202987;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    border: 5px solid #202987;
    box-shadow: 0 0 0 4px #202987;
    z-index: 3;
    transition: transform 0.3s ease;
}

.roadmap-item:hover .roadmap-point {
    transform: translateX(-50%) scale(1.1);
}

.roadmap-item h3 {
    color: #05b169 ;
    font-size: 18px;
    font-weight: normal;
}

.roadmap-item p {
    margin-bottom: 0;
    line-height: 23px;
    font-size: 0.95rem;
}

.roadmap-item:first-child::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    height: 32px;
    width: 10px;
    background-color: #200843;
    transform: translateX(-50%);
    z-index: 2;
} 


@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.animate-scroll {
    opacity: 0;
    transform: translateY(50px) scale(0.95) rotateX(-20deg);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transform-origin: center top;
    overflow: hidden; /* Предотвращает выход дочерних элементов за границы */
}

.animate-scroll.is-visible, .animate-scroll.is-visible .content-image,
.animate-scroll.is-visible .content-text {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0);
}

.content-image {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: 0.2s; /* Небольшая задержка для картинки */
}

.content-text {
    text-align: left;
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: 0.4s; /* Задержка больше, для поочередного эффекта */
}

/* --- PARTNERS --- */
.partners{
    padding-top: 30px;
}

.partners_ico {
    display:flex;
    flex-wrap:wrap;
    border:1px solid #381b64;
    border-radius:15px;
    padding: 15px;
    margin-top: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    align-items: center;
}

.partners_ico > div{
    flex: 1 1 200px;
    padding: 15px;
    text-align: center;
}

.partners_ico img{
    max-width:200px;
}

/* --- FAQ --- */
.faq{
    padding: 30px 0 100px;
}

.faq-container {
    background-color: #2a0b59;
    border-radius: 15px;
    padding: 30px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid hsl(263.85deg 79.72% 29.22% / 56%);
    padding: 20px;
    border-radius: 10px;
}
.faq-item:last-child {
    border-bottom: none;
}

.faq-item-active{
    background-color:hsl(264.41deg 78.67% 14.71% / 46%);
    transition: background-color 0.3s ease-in-out;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 20px;
    color: #fff;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: #d2d3ff;
}

.faq-question span {
    flex-grow: 1;
    padding-right: 20px;
}

.faq-icon {
    width: 24px;
    height: 24px;
    position: relative;
    flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background-color: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease-in-out, opacity 0.2s ease-in-out;
}

.faq-icon::before {
    width: 20px;
    height: 3px;
    top: 10.5px;
    left: 2px;
}

.faq-icon::after {
    width: 3px;
    height: 20px;
    top: 2px;
    left: 10.5px;
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease-in-out;
    font-size: 16px;
    line-height: 1.6;
}

.faq-answer-content {
    overflow: hidden;
}

.faq-answer p {
    margin: 0;
    padding: 15px 0 0 0;
}

.faq-item.active .faq-answer {
    grid-template-rows: 1fr;
}

.faq-item.active .faq-icon::before {
    transform: rotate(180deg);
    opacity: 0;
}

.faq-item.active .faq-icon::after {
    transform: rotate(90deg);
}

.faq-item.active .faq-question {
    color: #fff;
}

/* --- FOOTER --- */
.footer_container{
    background-color:#180634;
    padding:20px;
}

.ftr {
    display:flex;
    gap:50px;
    color:#fff;
    justify-content:center;
}

.ftr span{
    font-size:20px;
}

.a_footer_link{
    color:#fff;
}

.a_footer_link:hover{
    text-decoration:underline;
}

footer a{
    text-decoration: none;
    color:#fff;
}

.mobile-menu{
    display: none;
}


.btn_frog {
    margin-top:20px;
    display:flex;
    gap:10px;
}

/* --- MEDIA QUERIES --- */
@media(max-width:1100px){
    .title-frog h1{
        font-size:40px;
    }
    .frog-box{
        flex-direction:column;
        align-items: center;
        text-align: center;
    }
    .frog-box > div{
        width:100%;
    }
}

@media (max-width: 992px) {
    .cryptiam:after {
        left: 0;
        right: 0;
    }
    .crp_info{
        padding:15px;
    }
     .crp {
        flex-direction: column;
    }
    .crp > div {
        width: 100%;
    }
}


@media(max-width:768px){
    .header-section, .adv_wallet, .frog-container, .cryptiam_container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .title-frog h1{
        font-size:30px;
    }

    .ftr{
     flex-direction:column;
    }

    .crp_info h2{
        font-size:25px;
    }

    .btn_header{
        display: none;
    }
    .mobile-menu{
        display: block;
        text-align: right;
    }
    .central-planet {
        background-size: 30%;
        background-position: top 90px right 120px;
    }
    .carousel-scene {
        max-width: 320px;
        height: 320px;
    }
    .coin-item {
        width:60px;
        height:60px;
    }
    .coin-item img{
        width:30px;
        height:30px;
    }
}

@media (max-width: 768px) {
    .roadmap-container::before {
        left: 10px; /* Линия слева */
        transform: translateX(0);
    }

    .roadmap-item {
        padding-left: 40px;
        flex-direction: column; /* Элементы друг под другом */
        align-items: stretch; /* Растягиваем на всю ширину */
    }
    .roadmap-content {
        width: 100%;
        margin-bottom: 20px;
        text-align: left !important;
    }

    .roadmap-point {
        left: 12px; /* Точки на линии слева */
        top: 25px;
        transform: translateX(-50%);
    }

    .roadmap-item:first-child::before {
        left: 12px;
        height: 37px; /* До центра первой точки */
    }

    .container{
        padding-left: 5px;
        padding-right: 5px;
    }

    .ftr span{
        font-size:16px;
    }
}

@media (max-width: 576px) {
     .header-section, .adv_wallet, .frog-container, .cryptiam_container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .btn_frog{
        flex-direction:column;
    }
    .btn_frog a{
        margin-left:0;
    }
}

@media(max-width:400px){
    .central-planet {
        background-size: 30%;
        background-position: top 100px right 110px;
    }
    .carousel-container{
        transform:scale(0.75);
    }
}


.policy-content{
    background-color: #2a0b59;
    border-radius: 15px;
}

.policy-page h1{
    font-size: 50px;
}

.policy-content {
    padding:20px;
}

.policy-content h5{
    font-size:17px;
    margin-top:0;
    margin-bottom:0;
}

.policy-content h5:before{
    content:'\2022';
    font-size:45px;
    vertical-align:middle;
    padding-right:8px;
    position:relative;
    top:-1px;
    color:#4ade80;
}

.ul_blue_bull {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

.ul_blue_bull li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.ul_blue_bull li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    top: -20px;
    vertical-align:middle;
    color: #4ade80;
    font-weight: bold;
    font-size:45px;
}

.policy-content p{
    line-height:25px;
}
.policy-page{
    margin-bottom:50px;
    margin-top: 50px;
}

@media(max-width:1100px){
    .policy-page h1{
        font-size: 35px;
    }
    .policy-content h1{
        font-size:30px;
    }
}

@media(max-width:768px){
    .policy-page h1{
        font-size: 25px;
    }

    .policy-content h1{
        font-size:25px;
    }
}

@media(max-width:500px){
    .policy-page h1{
        font-size: 20px;
    }
    .policy-content h1{
        font-size:20px;
    }
}

.flyout-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #3d1266d9, #0d051d80);
    backdrop-filter: blur(5px);
    border-right: 1px solid rgb(255 255 255 / 5%);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 99999;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

.flyout-menu.is-open {
    transform: translateX(0);
}

.flyout-menu-header {
    padding: 1rem;
    text-align: center;
}

.flyout-menu-links {
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.flyout-menu-links a {
    padding: 5px 1rem;
    color: #fff;
    text-decoration: none;
    cursor:pointer;
    border-radius: 6px;
    font-size: 1.1rem;
}

.flyout-menu-links a:hover {
    background-color: #0000004d;
}

.close-btn {
    background: #2c1552;
    color:#fff;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 0.75rem;
    border-radius:50px;
    line-height: 1;
    width: 40px;
    height: 40px;
}