body {
    background-color: var(--light);
}

.title {
    background-image: linear-gradient(to top,
            var(--black-50),
            var(--black-50)),

        url('../images/header-mobile-order-and-pay.jpg');
}

.wrapper {
    overflow: hidden;
}

/* top wrapper */
.top {
    display: flex;
    flex-direction: column;
    border-radius: 0 0 30px 30px;

}

.orderahead,
.morerewards {
    align-items: center;
    position: relative;
    display: flex;
    gap: clamp(80px, 10vw, 140px);
}

.morerewards {
    flex-direction: row-reverse;
}

/*images*/

.order-ahead-img {
    width: 100%;
    max-width: 787px;
    max-height: fit-content;
    margin-left: -260px;
    padding-right: clamp(10px, 7vw, 85px);
}

.more-rewards-img {
    width: 100%;
    max-width: 787px;
    max-height: fit-content;
    margin-right: -260px;
    padding-left: clamp(10px, 7vw, 85px);
}

/* === TEXT BLOCKS === */
.orderahead-text,
.morerewards-text {
    flex-direction: column;
    width: 45%;
    max-width: 100%;
}

.orderahead-text h3,
.morerewards-text h3 {
    margin-bottom: 80px;
}

.orderahead-text a {
    text-decoration: underline;
}

/* middle part */
.light>h3 {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* === STEPS LAYOUT === */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: repeat(3, auto) auto;
    column-gap: clamp(40px, 0vw, 80px);
    row-gap: clamp(30px, 4vw, 60px);
    align-items: center;
    justify-items: center;
    margin-top: clamp(40px, 6vw, 80px);
}

/* STEP CARDS */
.step {
    background-color: var(--light-brown);
    border-radius: 24px;
    width: 100%;
    max-width: 280px;
    min-height: 170px;
    padding: 24px;

    display: flex;
    align-items: center;
    text-align: center;

    position: relative;
    z-index: 2;

    transition: transform 0.3s;
}

.step:hover {
    transform: scale(1.05);
}

/* CENTER IMAGE */
.steps-image {
    max-width: 100%;
    grid-row: 1 / span 3;
    grid-column: 2;
    position: relative;
    z-index: 1;
}


/* BOTTOM STEP */
.seventhstep {
    opacity: 1;
    text-align: center;
    grid-column: 2;
    justify-self: center;
}

.firststep,
.thirdstep,
.fifthstep {
    --x: 60px;
}

.secondstep,
.fourthstep,
.sixthstep {
    --x: -60px;
}

.steps-image-top {
    display: none;
}

.dark-bottom {
    overflow: hidden;
    background-color: var(--dark);
    border-radius: 30px 30px 0 0;
    padding: 80px 20px 60px;
}

/* DECO */
.wrapper {
    position: relative;
    overflow: hidden;
}

.dark-bottom {
    position: relative;
}

.deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.deco>div {
    position: absolute;
}

.leaf-right-top {
    width: 13%;
    top: 38%;
    right: -5%;
    transform: scaleX(-1) rotate(10deg);
}

.leaf-left-top {
    width: 13%;
    bottom: -5%;
    left: -5%;
    transform: rotate(13deg);
}

.btm-right {
    width: 15%;
    bottom: 10%;
    right: -5%;
    transform: scaleX(-1) rotate(5deg);
}

.btm-left {
    width: 15%;
    bottom: 10%;
    left: -5%;
    transform: rotate(-2deg);
}

.tnc {
    padding: clamp(20px, 4vw, 40px) clamp(20px, 12vw, 170px);
}

.tnc h3 {
    text-align: center;
    margin-bottom: 70px;
}

.tnc p {
    margin-bottom: 40px;
    text-align: center;
}

@media (max-width: 1024px) {

    .orderahead h3,
    .morerewards h3 {
        margin-bottom: 35px;
    }

    .steps-grid {
        max-width: 900px;
        margin: 0 auto;
        column-gap: 40px;
    }

    .steps-image img {
        width: 260px;
    }

    .step {
        padding: 20px 32px;
        border-radius: 24px;
        max-width: 380px;
    }

    .seventhstep {
        margin-top: 40px;
    }

}


@media (max-width: 768px) {

    .top {
        padding: clamp(20px, 4vw, 40px) clamp(20px, 12vw, 170px);

    }

    .orderahead,
    .morerewards {
        display: block;
    }

    .orderahead-text,
    .morerewards-text {
        width: 100%;
        text-align: center;
        margin-top: 40px;
    }

    .morerewards-text {
        margin-top: -10px;
        margin-bottom: 60px;
    }

    .order-ahead-img,
    .more-rewards-img {
        display: none;
    }

    .orderahead-text h3,
    .morerewards-text h3 {
        margin-bottom: 20px;
    }

    .orderahead-text p {
        margin-bottom: 80px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 30px;
    }

    .steps-image,
    .seventhstep {
        grid-column: auto;
    }

    .seventhstep {
        margin-top: -0;
    }

    .steps-image {
        max-width: 220px;
        display: none;
    }

    .steps-image-top {
        display: block;
        text-align: center;
        margin-bottom: 20px;
    }

    .tnc h3 {
        margin-bottom: 40px;
    }

}