html {
    background: #131313;
}

body {
    padding: 0;
    margin: 0;
    background: transparent;
    width: 100%;
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    flex-direction: column;

    p {
        padding: 0;
        margin: 0;
    }
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background-image: url('/image/background.png');
    background-size: cover;
    background-position: center;
    filter: blur(10px);
    z-index: -1;
}



.cliclkable {
    cursor: pointer;
}

.modal_container {
    display: none;
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    justify-content: center;

    .modal {
        position: fixed;
        top: 50px;
        left: 50%;
        transform: translateX(-50%);
        max-width: 700px;
        width: calc(100% - 40px);
        /* или 90%, чтобы был отступ от краёв на малых экранах */
        background-color: #272727;
        padding: 24px;
        border-radius: 24px;
        color: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        z-index: 1000;

        svg {
            position: absolute;
            top: 20px;
            right: 20px;
            cursor: pointer;
        }

        form {
            display: flex;
            gap: 12px;
            width: 100%;

            .wallets {
                flex: 1;
                display: flex;
                flex-direction: column;
                gap: 12px;

                .custom-radio {
                    cursor: pointer;
                    position: relative;
                }

                .custom-radio input[type="radio"] {
                    display: none;
                }

                .radio-content {
                    display: flex;
                    align-items: center;
                    gap: 8px;
                    padding: 10px 14px;
                    border: 2px solid #ccc;
                    border-radius: 10px;
                    transition: 0.3s;
                    background-color: #fff;
                    color: #000;
                }

                .radio-content img {
                    width: 24px;
                    height: 24px;
                }

                .custom-radio input[type="radio"]:checked+.radio-content {
                    border-color: #2abdff;
                    background-color: #e6faff;
                }
            }

            .forms {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                gap: 24px;
                flex: 1;
                font-size: 24px;

                input {
                    padding: 12px;
                    border: none;
                    border-radius: 12px;
                    outline: none;
                    width: 80%;
                }

                button {
                    border: none;
                    padding: 12px;
                    border-radius: 12px;
                }
            }
        }

        .loading {
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 24px;
            flex: 1;
            font-size: 24px;
        }
    }
}

header {
    color: #b1b1b1;
    padding: 24px;
    font-size: 18px;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;

    ul {
        flex: 1;
        list-style: none;
        display: flex;
        padding: 0;
        margin: 0;
        gap: 12px;

        li a {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .logo {
            color: #F50DB4;
        }
    }

    ul:nth-of-type(2) {
        display: flex;
        align-items: center;
        justify-content: flex-end;

        li {
            .load_btn {
                background: none;
                border: 0.5px solid #5e5e5e;
                color: #fff;
                font-size: 14px;
                font-weight: 600;
                padding: 8px;
                border-radius: 12px;
                min-width:80px;
            }

            .connect_btn {
                color: #fff;
                background: #F50DB4;
                padding: 8px 12px;
                border: none;
                border-radius: 12px;
                font-weight: 700;
                font-size: 14px;
            }
        }
    }

    .search {
        flex: 1;
        background-color: #1f1f1f;
        padding: 6px 16px;
        border-radius: 990px;
        display: flex;
        align-items: center;
        border: 0.5px solid #5e5e5e;
        gap: 12px;
        max-width: 400px;

        svg {
            width: 20px;
            height: 20px;
        }

        input {
            background-color: #1f1f1f;
            border: none;
            color: #b1b1b1;
            font-size: 14px;
            font-weight: 500;
            outline: none;
        }

        input::placeholder,
        textarea::placeholder {
            color: #b1b1b1;
            /* замените на нужный цвет */
            opacity: 1;
            /* чтобы не был полупрозрачным, если не нужно */
            font-size: 16px;
            font-weight: 500;
        }
    }
}

section {
    flex: 1;
    width: 100%;
    margin-top: 40px;
    max-width: 1300px;
    margin: 0 auto;

    .block_swap {
        max-width: 500px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;

        h1 {
            color: #fff;
            font-size: 50px;
            font-weight: 100;
            padding: 0;
            margin: 0;
            text-align: center;
        }

        h3 {
            color: #b1b1b1;
            font-size: 18px;
            padding: 0;
            margin: 0;
            font-weight: 100;
            text-align: center;
        }

        .swaper {
            background-color: #131313;
            display: flex;
            flex-direction: column;
            padding: 8px;
            border-radius: 16px;
            gap: 4px;
            width: calc(100% - 36px);

            button {
                background: #251621;
                color: #F535C0;
                padding: 16px 20px;
                font-size: 16px;
                font-weight: 600;
                border: none;
                border-radius: 16px;
            }

            .swap1,
            .swap2 {
                height: 114px;
                border: 0.5px solid #5e5e5e;
                border-radius: 16px;
                padding: 16px;
                color: #b1b1b1;
                position: relative;

                display: flex;
                flex-direction: column;
                justify-content: space-between;

                .swap_miniblock {
                    height: 46px;
                    width: 46px;
                    position: absolute;
                    background: #131313;
                    border-radius: 12px;
                    bottom: -30px;
                    z-index: 1;
                    left: 50%;
                    transform: translateX(-50%);
                    padding: 4px;

                    .miniblock {
                        height: 100%;
                        width: 100%;
                        background-color: #1f1f1f;
                        border-radius: 12px;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                    }
                }



                .swap_inp {
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    flex: 1;

                    input {
                        background: none;
                        border: none;
                        max-width: 150px;
                        outline: none;
                        font-size: 28px;
                        color: #b1b1b1;
                    }

                    input[type="number"]::-webkit-outer-spin-button,
                    input[type="number"]::-webkit-inner-spin-button {
                        -webkit-appearance: none;
                        margin: 0;
                    }

                    input[type="number"] {
                        -moz-appearance: textfield;
                    }

                    select {
                        border: 0.5px solid #5e5e5e;
                        background: none;
                        color: #fff;
                        outline: none;
                        font-size: 18px;
                        border-radius: 22px;
                        padding: 8px;
                        appearance: none;
                        /* убираем стандартную стрелку */
                        -webkit-appearance: none;
                        -moz-appearance: none;

                        background: url('/image/arrow.svg') no-repeat right 8px center;
                        background-size: 20px;
                        padding-right: 30px;
                    }
                }
            }

            .swap2 {
                border: none;
                background-color: #1f1f1f;

                .swap_inp {
                    select {
                        background-color: #F50DB4;
                        color: #fff;
                    }
                }
            }
        }
    }


    .block_defi {
        padding: 40px;

        h1 {
            color: #fff;
            font-size: 32px;
            font-weight: 100;
        }


        .defi {
            color: #fff;
            display: grid;
            grid-template-columns: 1fr 1fr;
            /* 2 колонки */
            grid-template-rows: 1fr;
            /* 2 строки */
            gap: 10px;
            justify-content: center;

            .defi1 {
                background: #141f32;
                padding: 12px 24px;
                border-radius: 16px;
                display: flex;
                flex-direction: column;
                gap: 12px;

                button {
                    color: #2abdff;
                    border: none;
                    border-radius: 12px;
                    padding: 12px;
                    background: #131313;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    gap: 6px;
                    width: fit-content;
                }

                span {
                    color: #2abdff;
                    font-size: 32px;
                }


                .defi_crypto_block {
                    display: flex;
                    flex-direction: column;
                    gap: 12px;
                    flex: 1;
                    justify-content: end;

                    .defi_crypto {
                        display: flex;
                        align-items: center;
                        gap: 12px;
                        background-color: #131313;
                        border-radius: 12px;
                        padding: 12px;
                        position: relative;

                        img {
                            width: 32px;
                            height: 32px;
                            border-radius: 50%;
                        }

                        span {
                            color: #b1b1b1;
                        }

                        p {
                            color: #fff;
                            font-size: 18px;
                            font-weight: 500;
                        }

                        p:last-child {
                            position: absolute;
                            right: 20px;
                            display: flex;

                            span {
                                color: #21c95e;
                                font-size: 18px;
                                display: flex;
                                align-items: center;
                            }
                        }
                    }
                }
            }

            .defi2 {
                background: #332234;
                padding: 12px 24px 0 24px;
                border-radius: 16px;
                display: flex;
                flex-direction: column;
                gap: 12px;
                position: relative;

                button {
                    color: #F50DB4;
                    border: none;
                    border-radius: 12px;
                    padding: 12px;
                    background: #131313;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    gap: 6px;
                    width: fit-content;
                }

                span {
                    color: #F50DB4;
                    font-size: 32px;
                }

                .defi_block_img {
                    flex: 1;
                    display: flex;
                    align-items: center;
                    justify-content: center;

                    img {
                        width: 80%;
                        height: 100%;
                        object-fit: cover;
                    }
                }
            }

            .defi3 {
                background: #142321;
                padding: 12px 24px;
                border-radius: 16px;
                display: flex;
                flex-direction: column;
                gap: 32px;
                position: relative;

                button {
                    color: #00c3a0;
                    border: none;
                    border-radius: 12px;
                    padding: 12px;
                    background: #131313;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    gap: 6px;
                    width: fit-content;
                }

                span {
                    color: #00c3a0;
                    font-size: 32px;
                    flex: 1;
                    display: flex;
                    align-items: end;
                }
            }

            .defi4 {
                background: #231a30;
                padding: 12px 24px;
                border-radius: 16px;
                display: flex;
                flex-direction: column;
                gap: 32px;
                position: relative;

                button {
                    color: #9e62ff;
                    border: none;
                    border-radius: 12px;
                    padding: 12px;
                    background: #131313;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    gap: 6px;
                    width: fit-content;
                }

                span {
                    color: #9e62ff;
                    font-size: 32px;
                }
            }
        }
    }


    .block_trust {
        display: flex;
        padding: 40px 65px;
        gap: 24px;


        .block_trust_info {
            display: flex;
            flex-direction: column;
            gap: 24px;
            max-width: 480px;

            h1 {
                padding: 0;
                margin: 0;
                color: #fff;
                font-size: 32px;
                font-weight: 100;
                flex: 1;
            }

            p {
                color: #fff;
                font-size: 24px;
                font-weight: 100;
            }

            button {
                display: flex;
                align-items: center;
                width: fit-content;
                gap: 6px;
                background: #1f1f1f;
                border-radius: 990px;
                padding: 12px 16px;
                border: none;
                color: #fff;
                font-size: 16px;
            }
        }

        .block_trust_stats {
            flex: 1;
            display: grid;
            grid-template-columns: 1fr 1fr;
            /* 2 колонки */
            grid-template-rows: 1fr 1fr;
            /* 2 строки */
            gap: 10px;
            justify-content: center;


            .block_trust_stats_item {
                color: #fff;
                height: 150px;
                padding: 32px;
                background-image: radial-gradient(#363936 0.5px, transparent 0.5px);
                background-size: 20px 20px;
                /* расстояние между точками */
                background-color: #1f1f1f;
                border-radius: 18px;
                display: flex;
                flex-direction: column;
                justify-content: space-between;

                h2 {
                    padding: 0;
                    margin: 0;
                    font-size: 18px;
                    color: #b1b1b1;
                    font-weight: 100;
                }

                p {
                    font-size: 40px;
                }
            }

            .block_trust_stats_item:last-child {
                background-color: #161c18;
                color: #21c95e;

                h2 {
                    color: #21c95e;
                }
            }
        }
    }


    .block_connect {
        display: flex;
        padding: 40px 65px;
        gap: 24px;
        color: #fff;
        flex-direction: column;

        .connect {
            display: flex;
            align-items: center;
            gap: 24px;


            .connect_item {
                padding: 24px;
                display: flex;
                flex-direction: column;
                min-height: 202px;
                font-size: 24px;

                button {
                    border: none;
                    border-radius: 12px;
                    padding: 12px;
                    background: #131313;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    gap: 6px;
                    width: fit-content;
                    font-size: 18px;
                }

                p {
                    flex: 1;
                    display: flex;
                    align-items: end;
                }
            }

            .connect_item.item1 {
                flex: 1;
                color: #ff4d00;
                background: #261911;
                border-radius: 24px;
                max-width: 250px;

                button {
                    color: #ff4d00;
                }
            }

            .connect_item.item2 {
                flex: 1;
                color: #8e8767;
                background: #222018;
                border-radius: 24px;
                max-width: 250px;

                button {
                    color: #8e8767;
                }
            }

            .connect_item.item3 {
                color: #ff37c7;
                flex: 1;
                background: #271622;
                border-radius: 24px;

                button {
                    color: #ff37c7;
                }
            }
        }
    }



    footer {
        color: #fff;
        display: flex;
        flex-direction: column;
        padding: 40px 65px;
        gap: 24px;


        .footer_menu {
            display: flex;


            .footer_media {
                flex: 1;
            }

            .footer_links {
                display: flex;

                ul {
                    color: #fff;
                    list-style: none;
                    display: flex;
                    flex-direction: column;
                    gap: 12px;

                    li a {
                        color: #a8a8a8;
                    }
                }
            }
        }

        .footer_info {
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-top: 0.5px solid #5e5e5e;

            ul {
                list-style: none;
                display: flex;
                gap: 12px;

                li a {
                    color: #a8a8a8;
                    text-decoration: none;
                    font-size: 14px;
                }
            }
        }
    }
}


@media(max-width:900px) {
    header {
        position: sticky;
        top: 0;
        z-index: 990;
        background: #131313;
        border-bottom: 0.5px solid #5e5e5e;

        ul:first-of-type {
            li:not(:first-of-type) {
                display: none;
            }
        }

        .search {
            width: fit-content;
            flex: 0;

            input {
                display: none;
            }
        }
    }

    section {
        .block_swap{
            h1{
                margin-top:30px;
            }
        }
        .block_defi {
            .defi {
                display: flex;
                flex-direction: column;
            }
        }

        .block_trust {
            flex-direction: column;
        }

        .block_connect {
            .connect {
                flex-direction: column;

                .connect_item.item1 {
                    width: 80%;
                    max-width: none;
                }

                .connect_item.item2 {
                    width: 80%;
                    max-width: none;
                }

                .connect_item.item3 {
                    width: 80%;
                }
            }
        }
    }

    footer {
        .footer_menu {
            flex-direction: column;
            gap: 12px;
        }

        .footer_links {
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 24px;

            ul {
                flex: 1;
                margin: 0;
                padding: 0;
            }
        }
    }
}

@media (max-width:800px) {
    .modal_container {
        .modal {
            width: calc(100% - 80px);

            form {
                flex-direction: column;
            }
        }
    }
}

@media(max-width:600px) {
    header {
        ul:first-of-type {
            flex: 0;
        }
    }

    section {

        .block_defi {
            padding: 40px 20px;
        }

        .block_trust {
            padding: 40px 20px;

            .block_trust_stats {
                display: flex;
                flex-direction: column;
            }
        }

        .block_connect {
            padding: 40px 20px;

            .connect {
                .connect_item.item1 {
                    width: 80%;
                    max-width: none;
                }

                .connect_item.item2 {
                    width: 80%;
                    max-width: none;
                }

                .connect_item.item3 {
                    width: 80%;
                }
            }
        }

        .block_defi {
            .defi {
                .defi1 {
                    .defi_crypto_block {
                        .defi_crypto p:first-of-type {
                            display: none;
                        }
                    }
                }
            }
        }
    }
}

@media(max-width:400px) {
    header {
        ul:nth-of-type(2) {
            justify-content: center;
        }
    }

    section {
        footer {
            .footer_info {
                padding: 12px;
                flex-direction: column-reverse;
                gap: 12px;

                ul {
                    padding: 0;
                    margin: 0;
                    text-align: center;
                }
            }
        }
    }
}