/* ------ HERO ------- */
.hero {
    position: relative;
}

.hero__title {
    position: absolute;
    margin: auto 0;
    right: 16.11%;
    top: 44.67%;
    text-align: end;
}

.hero__title,
.hero__title--span {
    color: #FFFFFF;
}


/* ------ 1st SECTION ------ */
.products {
    display: grid;
    grid-template-columns: 1fr 2fr 169px;
    background-color: #F5F7F9;
    margin: 9.625rem auto;
    padding: 9.375rem 9.375%;
}

.products__header {
    grid-area: 1 / 1 / 2 / 2;
    padding-left: 1.75rem;
}

.products__header--span {
    color: #939FA4;

}

.products__button {
    grid-area: 1 / 3 / 2 / 4;
}

.offer {
    display: grid;
    grid-template-columns: 29.595625rem 2fr;
    position: relative;
    align-items: center;
    height: 11.58rem;
    max-width: 1198px;
    width: 100%;
    margin: 0 auto 1rem 3.782639%;
}

.offer:first-of-type {
    margin-top: 3.91rem;
}

.offer:hover {
    box-shadow: 0 20px 40px 0 rgba(0, 0, 0, 0.10);
    border-radius: 5px;
    background-color: #FFFFFF;
}

.offer__picture {
    background-color: #FFE9E9;
    padding: 0.9778125rem 0;
    width: 271px;
    position: absolute;
    left: -13.782639%;
    grid-area: 1 / 1 / 2 / 2;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.offer:hover .offer__picture {
    box-shadow: 0 20px 40px 0 rgba(0, 0, 0, 0.30);
}

.offer__picture--img {
    width: 105px;
    height: 134px;
    margin: 0 auto;
}

.offer__table {
    text-align: left;
    height: 3.625rem;
    width: 100%;
    grid-area: 1 / 2 / 2 / 4;
    justify-self: start;
}

.offer__table th {
    width: 27.8%;
}

.offer__table td {
    color: #A7B0B4;

}

.offer:first-of-type {
    grid-area: 2 / 1 / 3 / -1;
}

.offer:last-of-type {
    grid-area: 3 / 1 / 4 / -1;
}



/* ------ 2nd SECTION ------ */
.stories {
    margin-top: 8rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stories__header {
    text-align: center;
}

.stories__header--span {
    color: #939FA4;
}

.stories__sections {
    margin: 7.036875rem auto 5.7575rem;
    max-width: 1198px;
    width: 100%;
    display: flex;
    justify-content: space-evenly;
}

.stories__section {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 38.57625rem;
    max-width: 33.3%;
    position: relative;
    padding-top: 24.2975rem;
}

.stories__section:hover {
    box-shadow: 0 20px 40px 0 rgba(0, 0, 0, 0.10);
    border-radius: 5px;
}

.stories__section:hover .stories__section__picture {
    box-shadow: 0 30px 60px 0 rgba(0, 0, 0, 0.30);
}

.stories__section__picture {
    max-width: 23.625rem;
    width: 100%;
    border-radius: 5px;
    position: absolute;
    bottom: 16.185625rem;
    left: 0;
    right: 0;
    margin: 0 auto;
}

.stories__section__header {
    max-width: 14.9375rem;
}

.stories__section__paragraph {
    color: #A7B0B4;
    max-width: 19.83875rem;
}

.stories__section__link {
    display: flex;
    gap: 1.088125rem;
    padding-bottom: 2.55875rem;
}

.stories__section__header,
.stories__section__paragraph,
.stories__section__link {
    margin: 0 2.541875rem;
}

.stories__section__link,
.stories__section__arrow {
    color: #F9C4D2;
}


.stories__button {
    margin-bottom: 3.125rem;
}


/* MEDIA QUERIES TABLET */
@media screen and (max-width: 768px) {

    /* ------ HERO ------- */
    .hero__title {
        right: 13.542%;
        top: 45.813%;
    }

    /* ------ 1st SECTION ------ */
    .products {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        margin: 6.25rem auto;
        padding: 3.125rem 9.1146% 0;
        column-gap: 25%;
    }

    .products__header {
        grid-area: 1 / 1 / 2 / 2;
        justify-self: end;
    }

    .products__button {
        grid-area: 1 / 2 / 2 / 3;
        justify-self: end;
    }

    .offer {
        grid-area: 2 / 1 / 3 / -1;
        grid-template-columns: 1fr;
        align-items: center;
        justify-items: center;
        height: 16rem;
        max-width: 540px;
        margin: 0 auto 6.455625rem;
    }

    .offer:first-of-type {
        margin-top: 3.91rem;
        grid-area: 2 / 1 / 3 / -1;
    }

    .offer:last-of-type {
        grid-area: 3 / 1 / 4 / -1;
    }

    .offer:hover {
        box-shadow: none;
        border-radius: none;
        background-color: none;
    }

    .offer__picture {
        width: 281px;
        position: static;
        grid-column: 1 / -1;
        box-shadow: none;
    }

    .offer__table {
        text-align: left;
        height: 3.625rem;
        width: 63%;
        justify-self: center;
        grid-area: 2 / 1 / 3 / -1;
    }

    .offer__table th:nth-child(2), .offer__table td:nth-child(2){
        text-align: end;
    }

    .offer:first-of-type {
        grid-area: 2 / 1 / 3 / -1;
    }

    .offer:last-of-type {
        grid-area: 3 / 1 / 4 / -1;
    }



    /* ------ 2nd SECTION ------ */
    .stories {
        margin-top: 6.25rem;
    }

    .stories__sections {
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        margin: 3rem auto 0;
        max-width: 390px;
        gap: 2rem;
    }

    .stories__section {
        height: 36.4375rem;
        max-width: 100%;
        padding-top: 23.75rem;
    }

    .stories__section__picture {
        width: 23.125rem;
        bottom: 0;
        top: -1.25rem;
        border-radius: 5px;

    }

    .stories__section__link {
        padding-bottom: 2.5rem;
    }

    .stories__section__paragraph {
        padding-top: 0.625rem;
        padding-bottom: 1.0625rem;
    }

    .stories__section__header,
    .stories__section__paragraph,
    .stories__section__link {
        margin: 0 1.875rem;
    }


    .stories__button {
        margin-bottom: 6.25rem;
    }
}


/* MEDIA QUERIES MOBILE */
@media screen and (max-width: 360px) {
    /* ------ 1st SECTION ------ */
    .products {
        grid-template-columns: 16fr 9fr;
        margin: 4rem auto;
        padding: 2rem 1.3125rem 5.5125rem;
        align-items: end;
    }

    .products__header {
        padding-left: 1.573%;
    }
    .products__button {
        grid-area: 1 / 1 / 2 / 3;
        width: 40%;
    }

    .offer {
        height: 6.5625rem;
        max-width: 263px;
        margin: 2rem auto 1rem;
    }

    .offer:first-of-type {
        margin-top: 0;
        margin-bottom: 2.5rem;
    }

    .offer__picture {
        width: 132px;
        margin: 2rem 0 1rem;
        padding: 0.4rem;
    }

    .offer__picture--img {
        width: 54px;
        height: 67px;
    }

    .offer__table {
        height: 1.6875rem;
        width: 68%;
    }

    .offer__table th {
        font-size: 14px;
    }

    .offer__table td {
        font-size: 12px;
    }


    /* ------ 2nd SECTION ------ */
    .stories {
        margin-top: 0;
        width: 90%;
        margin: 0 auto;
    }

    .stories__sections {
        max-width: 318px;
    }

    .stories__section {
        height: 31.3575rem;
        padding-top: 19.75rem;
    }
    .stories__section:not(:last-of-type){
        padding-bottom: 12rem;
    }

    .stories__section:hover {
        box-shadow: none;
        border-radius: none;
    }
    
    .stories__section__picture:hover {
        box-shadow: none;
    }

    .stories__section__picture {
        width: 100%;
    }

    .stories__section__link {
        padding-top: 1rem;
        line-height: 0;
        font-size: 16px;
    }

    .stories__section__arrow {
        line-height: 0;
    }

    .stories__button {
        margin-top: 1rem;
        margin-bottom: 3.25rem;
        font-size: 12px !important;
    }
}