
@media screen and (max-width:1024px) {
    .swiper_cart{
        height: 400px;
        grid-template-columns: 60px 1fr;
    }
    .prod_var{
        flex-wrap: wrap;
    }
    .prod_cart{
        grid-template-columns: auto 350px;
    }
    .alloc_steps {
        gap: 0;
    }
    .alloc_step_line {
        min-width: 16px;
    }
    .alloc_step_label {
        font-size: 0.62rem;
    }
}


@media screen and (max-width: 767px) {
    .face_burger{
        display: block;
    }
    .main_page{
        position: relative;
    }
    .container{
        padding: 0 12px;
    }
    header .reg{
        font-size: .7rem;
        padding: 10px;
        min-height: max-content;
    }
    header .logo{
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
    }
    .hero_section{
        height: 90vh;
    }
    .banner img{
            transform: scale(1.5);
    }
    .hero_links{ 
        bottom:50px;
    }
    .video_nav{
        position: absolute;
        top: 30px;
        right: 0px;
        z-index: 100;
        display: flex;
        flex-direction: column;
    }
    .hero_section .container{
        position: static;
    }
    h2{
        font-size: 1.25rem;
        margin: 0 0 16px;
    }
    .th_section img{
                width: auto;
        height: 400px;
        position: absolute;
        object-fit: cover;
        bottom: 0;
        left: -81%;
    }
    .th_section{
        overflow: hidden;
        padding-bottom: 400px;
        position: relative;
        width: 100%;
    }
    p{
        font-size: 1rem;
    }
    .th_section>div{
        margin-bottom: 16px;
    }
    .py {
    padding: 20px 0;
}
h3{
    font-size: 1.2rem;
}
.grid_content{
    grid-template-columns: 1fr;
}
.grid_content h3{
    left: 10px;
    bottom: 20px;
}
.fuul_container{
    height: 100%;
    padding-top: 500px;
    background-position: top;
    background-size: 500px;
}
.cont_full{
    width: 100%;
    padding: 30px 0 0;
}
main{
    overflow-x: hidden;
}
.mySwiper>div {
    justify-content: start;
}
.mySwiper p{
    font-size: .9rem;
    padding: 0 20px;
}
.reg, .hero_links a{
    font-size: .87rem;
}
.footer_newsletter{
    flex-direction: column-reverse;
    gap: 20px;
}
.footer_newsletter_title{
    font-size: 1rem;
    white-space: normal;
    text-align: center;
}
.footer_newsletter_form{
    width: 100%;
    max-width: 100%;
}
.footer_social{
    width: 100%;
    justify-content: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}
.footer_nav{
    flex-direction: column;
    gap: 24px;
}
.footer_nav>div{
    width: 100% !important;
}
.footer_col_title{
    margin-bottom: 12px;
}
.footer_col ul{
    gap: 8px;
}
.footer_bottom{
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 0;
}
.footer_copy{
    width: 100%;
    font-size: 0.72rem;
    line-height: 1.5;
    text-align: center;
}
.mySwiper{
    padding-bottom: 60px;
}
.swiper-pagination-bullet-active{
    background: #000;
}
.product_cart .mySwiper{
    display: none;
}
.swiper_cart{
    display: block;
}
.prod_cart{
    display: flex;
    flex-direction: column;
}
header{
    position: relative;
}
.box_items{
    display: flex;
    flex-direction: column-reverse;
}
.img_box{
    max-width: 250px;
    margin: 0 auto;
}
.cont_full{
    padding-bottom: 60px;
}
.fuul_container3 a, .fuul_container4 a{
    margin: 0 auto;
    max-width: 200px;
    width: 100%;
}
.order_item{
    padding: 6px;
    gap: 10px;
}
.order_catalog{
    max-height: 230px;
}
.order_layout{
    display: block;
}
.order_item_img{
    width: 60px;
    height: 60px;
}
.order_form_row{
    grid-template-columns: 1fr;
}
.order_add_more{
    padding-bottom: 30px;
}
.bg_order{
    height: 100px;
}

/* Popup — mobile */
.popup_modal {
    grid-template-columns: 1fr;
    max-width: 400px;
    box-shadow: 0 1px 10px rgb(239, 179, 179);
}
.popup_img_col {
    height: 160px;
}
.popup_content {
    padding: 28px 24px 32px;
}
.popup_title {
    font-size: 1.5rem !important;
}

/* Allocation steps — mobile */
.alloc_steps {
    gap: 0;
    margin-bottom: 28px;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.alloc_steps::-webkit-scrollbar {
    display: none;
}
.alloc_step {
    flex-shrink: 0;
}
.alloc_step_num {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
}
.alloc_step_label {
    font-size: 0.65rem;
    white-space: nowrap;
}
.alloc_step_line {
    min-width: 16px;
    max-width: 32px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

/* Demand notice */
.alloc_demand--desktop {
    display: none;
}
.alloc_demand_bar--mobile {
    display: block;
}
.alloc_demand {
    font-size: 0.75rem;
    padding: 8px 0;
}

/* Allocation box */
.alloc_box {
    padding: 16px;
}

/* Confirmed screen */
.notice_inner {
    grid-template-columns: 1fr;
    gap: 16px;
}
.notice_icon {
    display: none;
}
.notice_section {
    padding: 36px 0;
}
.alloc_confirmed_section {
    padding: 40px 0;
    min-height: unset;
}
.alloc_confirmed_title {
    font-size: 1.4rem !important;
}
.alloc_confirmed_meta {
    width: 100%;
}
.hero_links{
    flex-wrap: wrap;
    width: 100%;
    max-width: 260px;
    flex-direction: column-reverse;
}
.hero_links a{
    width: 100%;
}
.alloc_meta_row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 14px;
}
.alloc_confirmed_item {
    gap: 10px;
    padding: 10px;
}
.alloc_confirmed_item_img {
    width: 48px;
    height: 48px;
}
.main_page .face_burger{
    display: none;
}
.main_page .logo{
    position: static;
    transform: none;
}

/* Prevent horizontal scroll on mobile */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* iOS zoom fix — inputs/selects/textarea must be ≥16px to prevent auto-zoom on focus */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="url"],
input:not([type]),
select,
textarea {
    font-size: 16px !important;
}

/* Full-width primary buttons on mobile */
.order_submit {
    width: 100%;
    align-self: stretch;
}

/* Payment screen — mobile */
.pay_layout {
    grid-template-columns: 1fr;
    gap: 28px;
}
.order_section_title {
    font-size: 1rem;
    margin-bottom: 14px;
}
.order_title {
    font-size: 1.6rem;
    margin-bottom: 18px;
}
.order_field label {
    font-size: 0.7rem;
}
.order_field input,
.order_field textarea {
    padding: 12px 14px;
}
.order_submit {
    padding: 14px 18px;
    font-size: 0.85rem;
}
.pay_methods {
    margin-bottom: 20px;
}
.pay_method_tab {
    padding: 12px 10px;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}
.pay_form_block {
    gap: 16px;
}
.pay_row {
    gap: 12px;
}
.pay_card_visual {
    padding: 20px 18px 16px;
    height: auto;
    min-height: 180px;
}
.pay_summary_items {
    gap: 8px;
}
.pay_fee_box {
    font-size: 0.95rem;
    padding-top: 12px;
    margin-top: 12px;
}
.pay_fee_sub {
    padding: 8px 0;
    font-size: 0.78rem;
}
.pay_crypto_selector {
    flex-wrap: wrap;
}
.pay_crypto_btn {
    padding: 8px 14px;
    font-size: 0.8rem;
}
.pay_crypto_amount_box {
    padding: 16px;
}
.pay_crypto_addr_row {
    flex-direction: column;
    gap: 8px;
}
.pay_crypto_addr_row input,
.pay_crypto_addr_row .pay_crypto_copy {
    width: 100%;
}
}