@media (max-width: 1280px) {
    .foodai-discovery {
        padding: 64px 0 70px;
    }

    .foodai-discovery-main {
        padding: 26px;
    }

    .w-1152 {
        /* max-width: calc(100%- var(--double-gutter)); */
        max-width: 100%;
        padding: 0 var(--gutter);
        width: calc(100% - var(--double-gutter));
    }

    .header .conte .logo {
        width: clamp(130px, 16vw, 181px);
    }

    .header nav .menu {
        gap: clamp(20px, 3.5vw, 56px);
    }
    
    .page .step1 {
        height: auto;
        padding: 80px 0;
    }

    .food-info {
        gap: 15px;
    }

    .food-info .title {
        font-size: 38px;
    }

    .food-info .text {
        font-size: 18px;
    }

    .food-info .link {
        gap: 10px;
        padding-top: 10px;
        /* padding */
    }

    .food-info .link a {
        width: clamp(120px, 20vw, 214px);
    }

    .step1 .banner .banner-image {
        margin-right: 0;
        width: clamp(300px, 45vw, 629px);
        flex-shrink: 0;
    }

    .step1 .banner .banner-image img {
        width: 100%;
        object-fit: contain;
    }


    .step2 .work .work-pro .pro-left {
        max-width: clamp(200px, 30vw, 320px);
    }

    .step2 .work .work-pro .pro-right .pro-item {
        padding: 15px 8px 23px;

    }

    .step2 .work .work-pro {
        gap: 40px;
    }

    .step2 .work .work-pro .pro-right .pro-item .number {
        width: 28px;
        height: 28px;
        font-size: 16px;
        line-height: 28px;
        border-radius: 6px;
    }


    .adv .con {
        gap: 20px;
    }

    .step4 {
        padding-top: 60px;
        padding-bottom: 130px;
    }

    .step4 .faq {
        padding: 0;
    }

    .step4 .faq .faq-item p {
        font-size: 18px;
        line-height: 1.2;
    }

    .footer-link {
        padding-bottom: 56px;
    }
}

@media (max-width: 1024px) {
    .food-info .title {
        font-size: 30px;
    }

    .food-info .text {
        font-size: 16px;
        line-height: 24px;
    }

    .footer-link .footer-logo {
        width: 150px;
    }

    .footer-link .footer-logo img {
        width: clamp(130px, 16vw, 181px);
    }

    .footer-link .footer-logo p {
        font-size: 16px;
        line-height: 24px;
    }

    .footer-link .footer-nav {
        gap: 16px;
    }

    .footer-link .footer-nav li a {
        font-size: 16px;
    }

    .footer-link .footer-nav li button {
        font-size: 16px;
    }

    .footer-link .store {
        gap: 25px;
    }

    .footer-link {
        padding-bottom: 16px;
    }

    .footer .footer-rig .cont p {
        font-size: 14px;
    }

    .footer .footer-rig .http {
        gap: 30px;
    }

    .footer .footer-rig .http a {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .meal-story-layout {
        gap: 20px;
    }

    .foodai-discovery-main img {
        width: 230px;
        transform: none;
    }

    .contact-band {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .contact-band h2 {
        font-size: 28px;
    }

    .contact-stores {
        flex-wrap: wrap;
        gap: 14px;
    }

    .contact-stores img {
        width: 148px;
    }
    .step2 {
        padding-top: 54px;
        padding-bottom: 62px;
    }

    .value-flow {
        position: relative;
        grid-template-columns: 1fr;
        gap: 0;
        padding-left: 12px;
    }

    .value-flow-item {
        position: relative;
        padding: 0 0 24px 28px;
        border-left: 1px solid #dcefe0;
    }

    .value-flow-item:last-child {
        padding-bottom: 0;
        border-left-color: transparent;
    }

    .value-flow-number {
        margin-bottom: 10px;
        font-size: 16px;
    }

    .value-flow-item h3 {
        font-size: 22px;
    }

    .value-flow-item p {
        max-width: none;
        font-size: 16px;
    }

    .value-flow-arrow {
        position: static;
        display: block;
        width: 20px;
        height: 24px;
        margin: -8px 0 -8px 2px;
        font-size: 20px;
        line-height: 1;
        transform: rotate(90deg);
    }
    .meal-story {
        padding: 58px 0 64px;
    }

    .meal-story-heading .item-text {
        margin-bottom: 34px;
    }

    .meal-story-layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .meal-story-visual {
        min-height: 0;
    }

    .meal-story-image {
        width: min(100%, 330px);
        height: 285px;
    }

    .meal-story-caption {
        margin-top: 6px;
        font-size: 14px;
    }

    .meal-story-dots {
        gap: 14px;
        margin-top: 12px;
    }

    .meal-story-dot {
        width: 44px;
        height: 44px;
    }

    .meal-story-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .meal-story-steps::before {
        top: 22px;
        right: 28px;
        bottom: auto;
        left: 28px;
        width: auto;
        height: 1px;
    }

    .meal-story-step {
        display: flex;
        min-height: 104px;
        padding: 0 2px;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
    }

    .meal-story-number {
        width: 44px;
        height: 44px;
    }

    .meal-story-step-copy {
        display: block;
        padding: 0;
    }

    .meal-story-step strong {
        display: block;
        font-size: 16px;
        line-height: 1.25;
    }

    .meal-story-step small {
        display: none;
    }

    .meal-story-step.is-active::after {
        top: auto;
        right: 8px;
        bottom: 0;
        left: 8px;
        width: auto;
        height: 2px;
    }

    .step2 {
        padding: 42px 0 48px;
    }

    .why-food-ai-band {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .why-food-ai-band h2 {
        font-size: 28px;
    }

    .why-food-ai-copy p {
        font-size: 17px;
    }

    .why-food-ai-keywords {
        flex-wrap: wrap;
        gap: 8px 25px;
        margin-top: 18px;
        line-height: 1.5;
    }

    .why-food-ai-keywords span:not(:last-child)::after {
        right: -15px;
    }

    .meal-story {
        padding: 54px 0 62px;
    }

    .meal-story-layout {
        gap: 20px;
    }

    .meal-story-image {
        width: min(84vw, 330px);
        height: auto;
        max-height: none;
    }
    .foodai-discovery {
        padding: 54px 0 64px;
    }

    .foodai-discovery-main {
        min-height: 0;
        padding: 24px;
        flex-direction: column;
        align-items: flex-start;
    }

    .foodai-discovery-main img {
        width: 150px;
        max-height: 130px;
        margin: 18px auto 0;
    }

    .foodai-discovery-secondary {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 16px;
    }

    .foodai-discovery-card {
        min-height: 0;
        padding: 24px;
    }

    .step1 .banner .banner-image {
        display: none;
    }

    .header .download {
        display: none;
    }

    .header .menu-btn {
        display: block;
        width: 42px;
        height: 42px;
        flex-shrink: 0;
    }

    .food-info .title {
        text-align: center;
    }

    .food-info {
        gap: 30px;
    }

    .titke-m {
        display: block;
        font-size: 60px;
    }

    .food-info .text {
        text-align: center;
    }

    .food-info .link {
        gap: 20px;
        justify-content: center;
    }

    .item-title {
        font-size: 30px;
        margin-bottom: 20px;
    }

    .item-text {
        font-size: 16px;
        margin-bottom: 36px;
    }

    .step2 .work .work-pro .pro-right {
        display: none;
    }

    .step2 .work .work-pro {
        justify-content: center;
    }

    .step2 .work .work-pro .pro-left {
        max-width: 100%;
    }

    .adv .con {
        grid-template-columns: repeat(2, 1fr);
    }

    .adv .con .con-item {
        padding: 10px;
    }

    .adv .con .con-item .p1 {
        font-size: 16px;
        line-height: 20px;
        margin: 15px 0;
    }

    .adv .con .con-item .p2 {
        font-size: 12px;
        line-height: 18px;
    }

    .contact {
        width: 100%;
        font-size: 16px;
    }

    .footer-link {
        flex-wrap: wrap;
    }

    .footer-link .footer-logo {
        width: 100%;
        flex-shrink: 0;
        max-width: none;
        display: flex;
        gap: 10px;
        flex-direction: column;
        align-items: center;
    }

    .footer-link .footer-logo p {
        margin: 0;
        text-align: center;
    }

    .footer-link .footer-nav {
        margin: 25px 0;
        gap: 8px;
    }

    .footer-link .store {
        margin: 25px 0;

    }

    .footer {
        padding-top: 30px;
    }

    .footer-link .footer-nav li a {
        font-size: 12px;
    }

    .footer-link .footer-nav li button {
        font-size: 12px;
    }

    .footer-link .store li a {
        display: block;
        width: clamp(100px, 30vw, 158px);
    }

    .footer-link .store li a img {
        display: block;
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .footer .footer-rig .cont {
        flex-direction: column-reverse;
        gap: 8px;
        align-items: center;
    }

    .footer .footer-rig .cont p {
        font-size: 12px;
    }

    .footer-link {
        padding-bottom: 0;
    }

    .header .conte nav.mobile-menu {
        display: flex;
        position: fixed;
        width: 100%;
        height: 100vh;
        background: #1A1B1B;
        top: 0;
        left: 100%;
        flex-direction: column;
        transform: translate(100%, 0);
        transition: all .5s ease;
    }

    .header .conte nav.mobile-menu.menu-active {
        transform: translate(0, 0);
        left: 0;
    }

    .header .conte nav.mobile-menu .close {
        height: 80px;
        display: flex;
        align-items: center;
        padding-right: 20px;
        justify-content: right;
    }

    .header .conte nav.mobile-menu .close .close-icon {
        width: 42px;
        height: 42px;
    }

    .header .conte nav.mobile-menu .menu {
        width: 100%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-top: 56px;
    }

    .menu-logo {
        display: flex;
        justify-content: center;
    }

    .header nav .menu button,
    .header nav .menu a {
        color: #fff;
        font-size: 38px;
    }

    .adv .con {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .adv .con .con-item {
        padding: 20px 0 18px;
    }


    .swiper-pagination {
        display: block;
    }

    .work-point {
        display: none !important;
    }

    .swiper-pagination-bullet-active {
        background: #00da7c !important;
    }

    .step2 .work .work-pro .pro-right .pro-item .p4 {
        min-height: 106px;
    }

    
    .step2 .work .work-pro .pro-left {
        max-width: 80% !important;
    }

    .step4 .faq .faq-item p {
        font-size: 16px;
    }

    .step4 {
        padding-top: 40px;
        padding-bottom: 80px;
    }

    .step3 .adv {
        padding-top: 40px;
        padding-bottom: 80px;
    }

    .step2 {
        padding-top: 40px;
        padding-bottom: 80px;
    }

    .food-info .link {
        padding-bottom: 10px;
    }

    .page .step1 {
        padding: 50px 0 50px;
    }
}

@media (max-width: 980px) {
    .step2 .work .work-pro .pro-right {
        display: none;
    }

    .step2 .work .work-pro {
        justify-content: center;
    }

    .step2 .work .work-pro .pro-left {
        max-width: 40%;
    }

    .swiper-pagination-bullet {
        width: 10px !important;
        height: 10px !important;
    }
}

@media (min-width: 768px) and (max-width: 768px) {
    .step2 .work .work-pro .pro-left {
        max-width: 60% !important;
    }
}

/* Keep mobile/tablet overrides inside the same Food AI brand tokens. */
.footer.footer {
    background: var(--food-footer);
}

@media (max-width: 768px) {
    .footer-link {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 36px 28px;
    }

    .footer-link .footer-logo {
        grid-column: 1 / -1;
    }
}

.step4.step4 .faq .faq-item {
    border-color: var(--food-border);
    border-radius: 13px;
    background: var(--food-white);
}

.step5.step5 {
    background: var(--food-green-soft);
}

.foodai-discovery-main,
.foodai-discovery-card {
    border-color: var(--food-border);
}

.step5.step5 {
    background: #0b6f3c;
}

@media (max-width: 768px) {
    .contact-band {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .contact-band h2 {
        font-size: 28px;
    }

    .contact-stores {
        flex-wrap: wrap;
        gap: 14px;
    }

    .contact-stores img {
        width: 148px;
    }
}
