@media screen and (max-width: 1300px) {
    .menu {
        padding-left: 20px;
        padding-right: 20px;
    }

    .menu-list { gap: 20px; }
}

@media screen and (max-width: 1200px) {
    .card .description-cont {
        padding: 0 20px 50px;
    }
}

@media screen and (max-width: 1150px) {
    .current-recipe { width: 60%; }
    .other-news { width: calc(40% - 40px); }
}

@media screen and (max-width: 1023px) {
    .other-news .news-desc {
        padding: 15px 10px;
    }

    .site-head > span:first-child {
        font: 25px 'Gilroy GEO';
        line-height: 30px;
    }

    .site-head > img { width: 140px; }
    .site-menu { gap: 25px; }

    .text {
        font: 12px 'FiraGo';
        line-height: 18px;
        margin-bottom: 15px;
    }

    .search-form { display: none; }

    .page-title1 {
        font-size: 30px;
        line-height: 30px;
    }

    .brand-history-content {
        gap: 20px;
        &::after, &::before { left: 390px; }
    }

    .brand-history { width: 380px; }
    .history-prev-img {
        min-height: 377px;
        > img:first-child {
            width: 349px;
            height: 345px;
            margin-left: 30px;
        }
        > div { width: 303px; height: 327px; }
    }

    .brand-info { width: calc(100% - 380px); }
    
    .news-grid {
        grid-template-columns: repeat(2, 350px);
        justify-content: center;
    }
}

@media screen and (max-width: 900px) {
    .recipe { flex-direction: column; }
    .current-recipe, .other-news { width: 100%; }

    .other-news > p:first-child { text-align: center; }

    .other-news > div {
        display: grid;
        grid-template-columns: repeat(2, 350px);
        justify-content: center;
        .news-desc { padding: 25px 30px 35px; }
    }
}

@media screen and (max-width: 767px) {
    header {
        background: rgba(255, 255, 255, 0.7);
        -webkit-backdrop-filter: blur(4px);
        backdrop-filter: blur(4px);
        filter: brightness(0.5);
        filter: drop-shadow(0px 3px 3px rgba(0, 0, 0, 0.07));
        filter: blur(60%);
        padding: 20px !important;
    }

    .header-content { flex-direction: row-reverse; }

    .site-list {
        display: flex;
        flex-direction: column;
        top: 85.3px;
        height: calc(100dvh - 85.3px);
    }

    .card {
        height: 40px;
        width: 100svw;
        transform: translateX(-100vw);
    }

    @keyframes slideIn {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .name {
        font: 14px 'FiraGo';
        line-height: 17px;
        white-space: nowrap;         
        transform: unset;   
        transform-origin: unset; 
        width: unset;
        bottom: 10px;
        left: 20px;
    }

    input:checked + .card { 
        width: 100vw; 
        height: calc(100dvh - 165.3px);
    }

    .card .description-cont {
        display: flex;
        align-items: unset;
        width: 100vw;
        height: calc(100dvh - 165.3px);
        padding: 0 20px;
        opacity: 0;
        overflow: hidden;
        padding-top: 30px;
        position: relative;
        transition: all 0.6s ease;
        &::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, #ffffff 0.00%, #f2f3f3 10%, 
            rgba(235,236,236,0.94) 25%, 
            rgba(222,223,223,0.88) 40%, 
            rgba(111,113,115,0) 100.00%);
            z-index: 1;
        }
        > * {
            position: relative;
            z-index: 2;
        }
    }

    .description { width: 100%; }
    /* .site-head > span:first-child { color: white; } */

    .learn-more {
        background: var(--secondary-color) !important;
        border-color: var(--secondary-color) !important;
        color: white;
    }

    .socials { flex-direction: row; }

    .menu {
        padding: 0 20px;
        flex-direction: column;
        justify-content: unset;
        opacity: 1;
        left: unset; right: unset;
        width: 100%;
        height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        transition: height 0.5s ease;
    }

    .menu.visible {
        left: unset;
        padding-top: 0;
        height: calc(100dvh - 100px);
    }

    .menu-list { display: none; }
    .mobile-menu {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding-top: 120px;
    }

    .mobile-nav i { transition: transform 0.3s ease; }

    .mobile-nav ul {
        list-style: none;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        transition: max-height 0.3s ease;

        li { display: flex; }
        a {
            color: white;
            text-decoration: none;
            display: flex;
            align-items: center;
            font: 14px 'BPG Mrgvlovani';
            line-height: 19px;
            padding: 10px 0 10px 20px;
            width: 100%;
        }
        li:last-child a { padding-bottom: 30px; }

    }

    .mobile-nav.active {
        ul { max-height: 1000px; }
        i { transform: rotate(180deg); }
    }

    .mobile-nav-head {
        color: white;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 0;
        font: 16px 'BPG Mrgvlovani Caps 2010';
        line-height: 19px;
        i { color: white; font-size: 12px; }
    }

    .mobile-nav > a {
        color: white;
        text-decoration: none;
        display: flex;
        font: 16px 'BPG Mrgvlovani';
        line-height: 19px;
        padding: 15px 0;
    }

    .mobile-search {
        display: block;
        position: relative;
        width: 100%;
        margin-top: 120px;
        input {
            background: transparent;
            border: 1px solid white;
            border-radius: 23px;
            color: white;
            font: 12px 'BPG Mrgvlovani';
            line-height: 16px;
            padding: 0 45px 0 20px;
            width: 100%;
            height: 45px;
            &:focus { outline: none; }
        }
        button {
            background: transparent;
            border: none;
            position: absolute;
            top: 13px; right: 20px;
            svg { fill: white; }
        }
    }

    .brand-history {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .brand-history-content {
        border-bottom: none;
        flex-direction: column;
        gap: 30px;
        &::after, &::before { content: none; }
    }

    .brand-info {
        width: 100%;
        .text { line-height: 18px; }
    }

    .brand-history-con, .contact-cont, .application-cont { padding: 30px 20px 100px; }
    .page-title { margin-bottom: 20px; }

    .footer-content {
        flex-direction: column;
        justify-content: center;
        align-items: unset;
        .socials { order: 3; }
    }

    .copyright { order: 1; }
    .creator { order: 2; margin-bottom: 10px; }

    .application-page {
        flex-direction: column;
        .text { width: 100%; }
    }

    .application-form {
        padding-top: 0;
        width: 100%;
        > p:first-child {
            font-size: 14px;
            line-height: 19px;
            margin-bottom: 20px;
        }
    }

    .contact-img { height: 170px; }

    .news-grid, .other-news > div { grid-template-columns: repeat(1, 350px); }

    .recipe-img { height: unset; border-radius: 10px; }
}

@media screen and (max-width: 600px) {
    .contact-items {
        flex-direction: column;
        > div:first-child { border-radius: 0; }
        > a:last-child { border-radius: 0 0 20px 20px; }
        > * { width: 100%; }
    }
}

@media screen and (max-width: 550px) {
    .site-head {
        flex-direction: column;
        align-items: unset;
        gap: 35px;
        padding-top: 20px;
    }
}

@media screen and (max-width: 450px) {
    .history-prev-img {
        min-height: 322px;
        > img:first-child { width: 278px; height: 274px; }
        > div { width: 242px; height: 260px; bottom: 20px; }
    }

    .application-form button { width: 100%; }
    .news-grid, .other-news > div {
        grid-template-columns: repeat(1, 1fr);
    }

    .recipe-head { margin-bottom: 20px; }
    .recipe-head > span {
        font-size: 20px;
        line-height: 21px;
    }

    .share-back {
        flex-direction: column;
        align-items: unset;
    }
}