/*
0. Global
1. Head
2. Hero
3. Pros
4. Size
5. Featured Ingredients
6. Pros 2
7. Pros 3
8. Superfoods
9. About
10. Composition
11. Tables

*/


/* ==============================
0. Global
============================== */

._biofeed {
    margin: 0 auto;
    max-width: 1200px;
    font-size: 20px;
    font-family: "Roboto Condensed", "Oswald", "Arial Narrow", "Liberation Sans Narrow", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    color: #1E3769;
    background: url("https://biofeedzoo.pl/data/include/cms/6111201785/assets/images/hero_bg.png"), radial-gradient(50% 50% at 50% 50%, #FFFFFF 0%, #F0F9FF 100%);
    background-repeat: no-repeat, no-repeat;
    background-position: top -5px left -5px, center;
    background-size: auto, cover;
    @media screen and (max-width: 900px) {
        background-position: top -80px left -80px, center;
    }
    @media screen and (max-width: 500px) {
        font-size: 18px;
        background-position: top -30px left -30px, center;
        background-size: 60%, cover;
    }
    h1,
    h2,
    h3,
    h4 {
        margin: 0;
        font-weight: 700;
    }
    h2 {
        font-size: 40px;
        line-height: 1;
        .normal-weak {
            font-weight: 400;
        }
        .weak {
            font-weight: 300;
        }
        .strong {
            font-weight: 800;
        }
        /** nie użyłem */
        .__bf_small {
            font-size: 24px !important;
        }
        @media screen and (max-width: 500px) {
            font-size: 25px;
        }
    }
    h3 {
        font-size: 22px;
        @media screen and (max-width: 500px) {
            font-size: 18px;
        }
    }
    p {
        margin: 0;
        font-size: 20px;
        line-height: 1.25;
    }
    .__bf_small_text {
        font-size: 16px;
        line-height: 1.1;
    }
    .__bf_large_text {
        font-size: 22px;
        line-height: 1.4;
    }
    .__bf_semi_xl_text {
        font-size: 25px;
        line-height: 1;
        strong {
            font-size: inherit;
        }
    }
    .__bf_xl_text {
        font-size: 35px;
        line-height: 1;
        @media screen and (max-width: 600px) {
            font-size: 25px;
        }
    }
    .__bf_xxxl_text {
        font-size: 70px;
        line-height: 1.05;
        @media screen and (max-width: 900px) {
            font-size: 60px;
        }
        @media screen and (max-width: 600px) {
            font-size: 45px;
        }
    }
}

.__bf_wrapper {
    margin: 0 auto;
    padding-inline: 50px;
    max-width: 1000px;
    box-sizing: border-box;
    @media screen and (max-width: 500px) {
        padding-inline: 32px;
    }
    @media screen and (max-width: 360px) {
        padding-inline: 24px;
    }
}

.__bf_image {
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.__bf_uppercase {
    text-transform: uppercase;
}


/* ==============================
1. Head
============================== */

._bf_head {
    padding-block: 54px 62px;
    box-sizing: border-box;
    .__bf_wrapper {
        display: flex;
        justify-content: flex-end;
        gap: 63px;
        max-width: 1120px;
    }
    @media screen and (max-width: 900px) {
        padding-block: 50px 48px;
    }
    @media screen and (max-width: 600px) {
        padding-block: 24px 36px;
        .__bf_wrapper {
            gap: 24px;
        }
    }
}


/* ==============================
2. Hero
============================== */

._bf_hero {
    padding-bottom: 30px;
    .__bf_wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 48px;
        .__bf_column {
            flex: 1;
            display: flex;
            align-items: center;
            flex-direction: column;
            text-align: center;
            &:first-of-type {
                max-width: 261px;
                gap: 12px;
            }
            &:nth-of-type(2) {
                max-width: 551px;
                gap: 14px;
            }
            h2 {
                max-width: 540px;
            }
            .logo_euphoria {
                margin-top: 15px;
            }
        }
    }
    @media screen and (max-width: 900px) {
        .__bf_wrapper {
            flex-direction: column;
            .__bf_column {
                &:nth-of-type(2) {
                    gap: 25px;
                }
            }
        }
    }
    @media screen and (max-width: 600px) {
        .__bf_wrapper {
            gap: 32px;
            .__bf_column {
                .logo_euphoria {
                    margin-top: 0px;
                }
                &:first-of-type {
                    gap: 6px;
                }
                &:nth-of-type(2) {
                    gap: 12px;
                    .__bf_image {
                        max-width: 290px;
                        max-height: 58px;
                    }
                    .__bf_large_text {
                        font-size: 16px;
                    }
                }
            }
        }
    }
}


/* ==============================
3. Pros
============================== */

._bf_pros {
    position: relative;
    isolation: isolate;
    padding-top: 30px;
    .__bf_wrapper {
        max-width: 1120px;
        display: flex;
        gap: 26px;
        pros-card {
            flex: 1;
        }
        .__bf_pros_card {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 14px;
            text-align: center;
        }
    }
    @media screen and (max-width: 900px) {
        .__bf_wrapper {
            flex-wrap: wrap;
            justify-content: center;
            gap: 8px 42px;
            pros-card {
                min-width: 30%;
                max-width: 240px;
            }
        }
    }
    @media screen and (max-width: 600px) {
        .__bf_wrapper {
            gap: 16px;
            pros-card {
                min-width: 35%;
            }
            .__bf_pros_card {
                gap: 5px;
                img {
                    width: 60px;
                }
                h3 {
                    font-size: 18px;
                }
                p {
                    margin-top: 8px;
                    font-size: 16px;
                }
            }
        }
    }
    @media screen and (max-width: 380px) {
        .__bf_wrapper {
            flex-direction: column;
            align-items: center;
        }
    }
}


/* ==============================
4. Size
============================== */

._bf_size {
    position: relative;
    isolation: isolate;
    padding-block: 100px 120px;
    display: flex;
    box-sizing: border-box;
    overflow: hidden;
    .__bf_caption {
        padding-inline: 70px;
        position: absolute;
        left: 0;
        bottom: 0;
        text-align: center;
        box-sizing: border-box;
    }
    .__bf_card {
        padding-left: 77px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 57px;
        max-width: 59%;
        width: 100%;
        background-color: #1E3769;
        border-radius: 0px 300px 300px 0px;
        box-sizing: border-box;
        >.__bf_image {
            height: 263px;
            transform: scale(1.09);
        }
    }
    .__bf_card_content {
        padding-block: 20px;
        .__bf_large_text {
            color: #FFFFFF;
        }
    }
    .__bf_image_wrapper {
        position: relative;
        flex: 1;
        .__bf_image {
            position: absolute;
            top: 50%;
            right: 0;
            width: 115%;
            max-width: none;
            height: auto;
            transform: translate(0, -50%);
        }
    }
    .__bf_rozmiar_karmy {
        margin-left: -20px;
    }
    @media screen and (max-width: 1000px) {
        padding-block: 52px 16px;
        flex-direction: column;
        gap: 24px;
        .__bf_caption {
            padding-inline: 20px;
            bottom: -26px;
            width: calc(100vw - 20px);
            font-size: 16px;
            transform: translateY(100%);
            box-sizing: border-box;
        }
        .__bf_card {
            position: relative;
            max-width: calc(100% - 62px);
            >.__bf_image {
                height: 242px;
            }
        }
        .__bf_card_content {
            .__bf_image {
                width: 240px;
            }
        }
        .__bf_image_wrapper {
            margin: 0 auto;
            .__bf_image {
                position: static;
                width: 100%;
                transform: none;
            }
        }
    }
    @media screen and (max-width: 670px) {
        padding-block: 116px 16px;
        gap: 64px;
        .__bf_card {
            padding: 14px 24px;
            flex-direction: column-reverse;
            gap: 14px;
            max-width: 100%;
            border-radius: 0;
            >.__bf_image {
                margin-top: -100px;
                height: 207px;
                transform: none;
            }
        }
        .__bf_card_content {
            padding: 0;
            text-align: center;
            .__bf_large_text {
                font-size: 16px;
            }
        }
        .__bf_image_wrapper {
            .__bf_image {
                z-index: 1;
            }
        }
        .__bf_caption {
            padding-inline: 10px;
            bottom: -16px;
        }
    }
}


/* ==============================
5. Featured Ingredients
============================== */

._bf_featured_ingredients {
    position: relative;
    padding-top: 74px;
    .__bf_wrapper {
        display: flex;
        flex-direction: column;
        gap: 49px;
        text-align: center;
    }
    .__bf_cards {
        display: flex;
        align-items: center;
        gap: 56px;
    }
    .__bf_card {
        text-align: left;
        .__bf_large_text {
            margin-top: 6px;
        }
    }
    .__bf_card,
    featured-ingredients-item {
        flex: 1;
    }
    .__bf_featured_ingredients_item {
        padding: 12px 47px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        height: 100%;
        background-color: #7CC6EF;
        border-radius: 100px;
        box-sizing: border-box;
        .__bf_large_text {
            display: inline-block;
            max-width: 240px;
        }
        .__bf_icon {
            height: 31px;
            width: auto;
            object-fit: scale-down;
        }
    }
    @media screen and (max-width: 900px) {
        padding-top: 16px;
        .__bf_cards {
            flex-direction: column;
            gap: 35px;
        }
        .__bf_card {
            text-align: center;
        }
        .__bf_featured_ingredients_item {
            padding: 12px 27px;
        }
    }
    @media screen and (max-width: 600px) {
        padding-top: 0px;
        .__bf_wrapper {
            gap: 40px;
            .__bf_large_text {
                font-size: 16px;
            }
        }
        .__bf_featured_ingredients_item {
            border-radius: 60px;
            p {
                font-size: 16px;
                .__bf_large_text {
                    font-size: 18px;
                }
            }
        }
        .__bf_cards {
            gap: 24px;
        }
    }
}


/* ==============================
6. Pros 2
============================== */

._bf_pros_2 {
    padding-block: 60px;
    .__bf_wrapper {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 45px;
        .__bf_xl_text {
            color: #7CC6EF;
        }
        .__bf_column {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 34px;
            min-width: 25%;
            &:nth-of-type(1) {
                max-width: 480px;
            }
            &:nth-of-type(2) {
                max-width: 400px;
            }
            .__bf_items {
                display: flex;
                flex-direction: column;
                gap: 14px;
                .__bf_pros_2_item {
                    display: flex;
                    align-items: center;
                    gap: 14px;
                }
            }
        }
    }
    @media screen and (max-width: 900px) {
        .__bf_wrapper {
            flex-direction: column;
            gap: 28px;
            .__bf_column {
                width: 100%;
                &:nth-of-type(1),
                &:nth-of-type(2) {
                    max-width: 100%;
                }
            }
        }
    }
    @media screen and (max-width: 500px) {
        padding-block: 24px 60px;
        .__bf_wrapper {
            gap: 24px;
            .__bf_column {
                gap: 24px;
            }
        }
        .__bf_pros_2_item {
            p {
                font-size: 16px;
            }
        }
    }
}


/* ==============================
7. Pros 3
============================== */

._bf_pros_3 {
    margin-top: -12px;
    position: relative;
    isolation: isolate;
    padding-top: 60px;
    .__bf_wrapper {
        display: flex;
        flex-wrap: wrap;
        gap: 60px 24px;
    }
    .__bf_column {
        .__bf_large_text {
            margin-top: 22px;
        }
        &:first-of-type {
            width: 100%;
            text-align: center;
        }
        &:nth-of-type(2) {
            flex: 1;
        }
        &:nth-of-type(3) {
            max-width: 391px;
            width: 100%;
        }
    }
    .__bf_items {
        margin-top: 12px;
        display: flex;
        flex-direction: column;
        gap: 15px;
        .__bf_pros_2_item {
            display: flex;
            align-items: center;
            gap: 14px;
        }
    }
    @media screen and (max-width: 900px) {
        .__bf_wrapper {
            align-items: center;
            gap: 32px 0px;
        }
        .__bf_column {
            &:nth-of-type(3) {
                max-width: 263px;
            }
        }
    }
    @media screen and (max-width: 640px) {
        padding-top: 40px;
        isolation: isolate;
        overflow: hidden;
        .__bf_large_text {
            font-size: 16px;
        }
        .__bf_wrapper {
            gap: 6px;
            flex-direction: column;
        }
        .__bf_column {
            &:first-of-type {
                order: 1;
            }
            &:nth-of-type(2) {
                order: 3;
            }
            &:nth-of-type(3) {
                margin-top: 22px;
                max-width: 196px;
                order: 2;
            }
        }
        .__bf_items {
            margin-top: 30px;
        }
        h3 {
            font-size: 22px;
        }
        .__bf_pros_2_item {
            p {
                font-size: 16px;
            }
        }
    }
}


/* ==============================
8. Superfoods
============================== */

._bf_superfoods {
    position: relative;
    isolation: isolate;
    margin-top: -24px;
    padding-block: 112px 60px;
    h2 {
        text-align: center;
    }
    .__bf_wrapper {
        display: flex;
        flex-direction: column;
        gap: 44px;
    }
    .__bf_items {
        display: flex;
        flex-direction: column;
        gap: 28px;
        .__bf_superfoods_item {
            display: flex;
            align-items: center;
            gap: 24px;
            img {
                width: 92px;
                height: auto;
            }
        }
    }
    @media screen and (max-width: 900px) {
        margin-top: 0px;
        padding-block: 72px 48px;
    }
    @media screen and (max-width: 500px) {
        padding-block: 36px 24px;
        .__bf_wrapper {
            padding-inline: 20px;
            gap: 32px;
        }
        .__bf_items {
            .__bf_superfoods_item {
                img {
                    width: 75px;
                }
                .__bf_large_text {
                    font-size: 16px;
                }
            }
        }
    }
    @media screen and (max-width: 360px) {
        .__bf_items {
            .__bf_superfoods_item {
                gap: 16px;
                img {
                    width: 50px;
                }
            }
        }
    }
}


/* ==============================
9. About
============================== */

._bf_about {
    padding-block: 40px;
    padding-inline: 50px;
    display: flex;
    align-items: center;
    gap: 24px;
    background-image: url(https://biofeedzoo.pl/data/include/cms/6111201785/assets/images/bg_tekstura.jpg);
    background-size: cover;
    box-sizing: border-box;
    .__bf_column {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;
        text-align: center;
        &:nth-of-type(1) {
            max-width: 460px;
            gap: 16px;
        }
        .__bf_rounded {
            border-radius: 40px;
        }
        .__bf_items {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 6px;
            .__bf_about_item {
                flex: 1;
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 12px;
                img {
                    width: 57px;
                    height: 59px;
                    object-fit: contain;
                }
            }
        }
    }
    @media screen and (max-width: 1000px) {
        flex-direction: column;
        .__bf_column {
            .__bf_items {
                display: none;
            }
        }
    }
    @media screen and (max-width: 600px) {
        background-position: bottom;
        .__bf_column {
            .__bf_large_text {
                font-size: 16px;
            }
        }
    }
    @media screen and (max-width: 400px) {
        padding-inline: 24px;
    }
}


/* ==============================
10. Composition
============================== */

._bf_composition {
    position: relative;
    isolation: isolate;
    padding-block: 60px;
    box-sizing: border-box;
    .__bf_wrapper {
        display: flex;
        flex-direction: column;
        gap: 50px;
        .__bf_container {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
    }
    @media screen and (max-width: 900px) {
        padding-block: 48px;
    }
    @media screen and (max-width: 500px) {
        padding-block: 24px;
        p {
            font-size: 16px;
        }
    }
}


/* ==============================
11. Tables
============================== */

._bf_tables {
    padding-bottom: 60px;
    background-image: url(https://biofeedzoo.pl/data/include/cms/6111201785/assets/images/foot_bg.png);
    background-position: bottom right;
    background-repeat: no-repeat;
    .__bf_wrapper {
        display: flex;
        gap: 56px;
        .__bf_container {
            flex: 1;
            .__bf_caption {
                margin-top: 4px;
            }
            .__bf_table {
                margin-top: 20px;
                width: 100%;
                border: none;
                border-collapse: collapse;
                .__bf_no_border {
                    border-bottom: none !important;
                }
                &.__bf_table_simple {
                    td {
                        padding: 9px 23px !important;
                    }
                }
                &.__bf_header_large {
                    ._bf_large_th,
                    ._bf_large_td {
                        width: 33%;
                        min-width: 33%;
                        max-width: 33%;
                        word-break: break-word;
                    }
                }
                &.__bf_table_header {
                    thead {
                        tr {
                            th {
                                padding: 9px 12px;
                                font-size: 17px;
                                border-bottom: 1px solid #1E3769;
                                background-color: #D9EDFA;
                                text-align: center !important;
                                box-sizing: border-box;
                            }
                        }
                    }
                    tbody {
                        tr {
                            &:nth-of-type(even) {
                                td {
                                    background-color: #D9EDFA;
                                }
                            }
                            &:nth-of-type(odd) {
                                td {
                                    background-color: #FFFFFF;
                                }
                            }
                        }
                        tr {
                            td {
                                text-align: center !important;
                                font-size: 20px;
                                strong {
                                    font-size: inherit;
                                }
                            }
                        }
                    }
                }
                strong {
                    font-weight: 600;
                }
                tr {
                    &:nth-of-type(odd) {
                        td {
                            background-color: #D9EDFA;
                        }
                    }
                    &:nth-of-type(even) {
                        td {
                            background-color: #FFFFFF;
                        }
                    }
                }
                tr {
                    td {
                        padding: 9px 8px;
                        border: none;
                        box-sizing: border-box;
                        &:nth-of-type(2) {
                            text-align: right;
                        }
                    }
                }
            }
        }
    }
    @media screen and (max-width: 900px) {
        padding-bottom: 50px;
        .__bf_wrapper {
            flex-direction: column;
        }
    }
    @media screen and (max-width: 500px) {
        padding-bottom: 24px;
        background-position: bottom -40px right;
        background-size: 60% auto;
        .__bf_wrapper {
            gap: 30px;
            .__bf_container {
                .__bf_caption {
                    font-size: 16px;
                }
                .__bf_table {
                    thead {
                        tr {
                            th {
                                font-size: 16px !important;
                            }
                        }
                    }
                    tbody {
                        tr {
                            td {
                                font-size: 16px !important;
                            }
                        }
                    }
                    &.__bf_header_large {
                        th,
                        td {
                            padding: 6px 10px !important;
                        }
                        ._bf_large_th,
                        ._bf_large_td {
                            width: 35%;
                            min-width: 35%;
                            max-width: 35%;
                            word-break: break-word;
                        }
                    }
                }
            }
        }
    }
    @media screen and (max-width: 360px) {
        .__bf_wrapper {
            .__bf_container {
                .__bf_table {
                    thead {
                        tr {
                            th {
                                font-size: 14px !important;
                            }
                        }
                    }
                    tbody {
                        tr {
                            td {
                                font-size: 14px !important;
                            }
                        }
                    }
                }
            }
        }
    }
}