* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

body {
    font-family: 'work sans',sans-serif
}

.hero-section {
    position: relative;
    background-image: url("../img/hero_bg_scale,w_1400.webp");
    background-size: cover;
    padding: 4rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80vh;
    overflow: hidden
}

.hero-overlay,.red-background {
    position: absolute;
    top: 0;
    height: 100%
}

.hero-overlay {
    left: 0;
    width: 100%;
    background-color: rgb(106 35 213 / 89%);
    z-index: 1
}

.red-background {
    right: 0;
    width: 80%;
    background-image: url("../img/hero_image_scale\,w_1266.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    clip-path: circle(63% at 78% 50%);
    z-index: 2
}

.hero-content {
    position: relative;
    max-width: 43%;
    color: #fff;
    z-index: 3
}

.button-group {
    display: flex;
    gap: 1rem;
    align-items: center
}

.welcome-text {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 700
}

.main-heading {
    font-size: 62px;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff
}

.h2-text,.offer-text {
    margin-bottom: 2rem;
    color: #fff
}

.h2-text {
    font-size: 24px;
    font-weight: 700
}

.offer-text {
    font-size: 1rem;
    line-height: 1.7
}

.menu-button,.order-button {
    padding: 16px 32px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: .3s;
    color: #fff;
    border: 2px solid #f0f4f8;
    text-decoration: none
}

.order-button {
    background-color: #f0f4f8;
    color: #7632da
}

.menu-button {
    background-color: transparent
}

.order-button:hover {
    background-color: #7632da;
    color: #fff
}

.menu-button:hover {
    background-color: rgba(255,255,255,.2)
}

.hero-image {
    position: relative;
    max-width: 45%;
    height: auto;
    z-index: 2
}

@media (min-width: 1050px) {
    .hero-content {
        max-width:45%
    }
}

@media (max-width: 1024px) {
    .hero-section {
        height:0;
        min-height: 589px
    }

    .red-background {
        clip-path: circle(50% at 78% 50%);
        background-position: 90%
    }

    .main-heading {
        font-size: 2.1rem
    }

    #close-mobile-menu {
        color: #7632da
    }
}

@media (max-width: 992px) {
    .main-heading {
        font-size:1.6rem
    }

    .red-background {
        clip-path: circle(52% at 80% 53%);
        background-position: 90%
    }

    .button-group,.hero-section {
        flex-direction: row
    }

    .menu-button,.order-button {
        padding: 14px 9px
    }
}

@media (min-width: 768px) {
    .hero-content h1 {
        max-width:20ch
    }

    .hero-content p {
        max-width: 53ch;
        text-wrap: pretty;
        orphans: 2;
        widows: 2
    }

    .hero-section {
    
    background-image: url("../img/hero_bg_scale,w_1079.webp");
    
    }
}

@media (max-width: 768px) {
    .red-background {
        clip-path:circle(56% at 84% 53%);
        background-position: 90%;
         background-image: url("../img/hero_image_scale,w_730.webp");
    }
}

@media (max-width: 767px) {
    .features {
        margin-top:330px
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
        overflow: visible
    }

    .red-background {
        width: 100%;
        height: 100%;
        clip-path: circle(90% at 50% 80%);
        background-position: 95% bottom;
        margin-top: 326px
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 2rem
    }

    .hero-image {
        max-width: 80%
    }

    .main-heading {
        font-size: 1.5rem
    }

    .offer-text {
        display: none
    }

    .h2-text {
        font-size: 1.1rem
    }

    .button-group {
        flex-direction: column;
        width: 100%;
        gap: 0
    }

    .menu-button,.order-button {
        width: 100%;
        margin-bottom: 1rem;
        padding: 12px
    }
}
