/* #region page */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: #292929;
    line-height: 140%;
    font-size: 16px;
}

.main {
    padding: 120px;
    background-color: #fff;
}

@media (max-width: 744px) {
    .main {
        padding: 72px;
    }
}
@media (max-width: 450px) {
    .main {
        padding: 20px;
    }
}

/* #endregion */
/* #region header */

.header__top {
    display: flex;
    justify-content: space-between;
}

.header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    box-sizing: border-box;
    height: 100vh;
    padding: 64px 120px;

    background-image: url(../img/header-gb.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.header__title {
    font-family: Inter;
    font-size: 48px;
    font-style: italic;
    font-weight: 800;
    line-height: 100%;

    margin-top: 40px;
    margin-bottom: 0;
    letter-spacing: -1.5px;
}

.change-photos .change-photo:nth-of-type(1) {
    display: none;
}

.change-photos:hover .change-photo:nth-of-type(2) {
    display: none;
}

.change-photos:hover .change-photo:nth-of-type(1) {
    display: block;
}

.change-photos:hover {
    cursor: pointer;
}

@media (max-width: 744px) {
    .header {
        padding: 40px 80px;
    }
}

@media (max-width: 450px) {
    .header {
        padding: 20px 40px;
    }
    .header__title {
        font-size: 32px;
        margin-top: 20px;
    }
    .header__photo {
        width: 32px;
        height: 38px;
    }
}

/* #endregion */
/* #region menu */

.menu {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    transform: translateX(-100%);
    transition: transform 500ms;

    box-sizing: border-box;
    height: 100%;
    padding: 64px 120px;
    background: #E8EFF9;
}

.menu:target {
    transform: translateX(0%);
}

.menu__top {
    margin-bottom: 64px;
    display: flex;
    justify-content: space-between;
}

@media (max-width: 744px) {
    .menu {
        padding: 72px;
    }
}

@media (max-width: 450px) {
    .menu {
        padding: 30px;
    }
}

/* #endregion */
/* #region nav */

.nav {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.nav__link {
    color: #292929;
    text-decoration: none;
    font-size: 22px;
    font-weight: 700;
    line-height: 22px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* #endregion */
/* #region recommended */

.recommended {
    margin-bottom: 120px;
}

.recommended__title {
    margin-top: 0;
    margin-bottom: 64px;
    font-size: 48px;
    line-height: 100%;
    font-weight: bold;
    text-align: center;
    letter-spacing: -1.5px;
}

.recomended_products {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.product__photo {
    width: 100%;
    margin-bottom: 32px;
}

.product__title {
    margin-top: 0;
    margin-bottom: 8px;
}
.product__category {
    margin-top: 0;
    margin-bottom: 12px;
}

.product__price {
    margin: 0;
    font-weight: bold;
}

@media (max-width: 744px) {
    .recomended_products {
        flex-direction: column;
    }
}

@media (max-width: 450px) {
    .recommended__title {
        font-size: 32px;
    }
}

/* #endregion */
/* #region categories */

.categories__title {
    margin-top: 0;
    margin-bottom: 64px;
    font-size: 48px;
    line-height: 100%;
    font-weight: bold;
    text-align: center;
    letter-spacing: -1.5px; 
}

.categories {
    margin: 0 auto;
    margin-bottom: 120px;
    max-width: 1020px;
}

@media (max-width: 450px) {
    .categories__title {
        font-size: 32px;
    }
}

/* #endregion */
/* #region category */

.category{
    margin-bottom: 64px;
}

.category__photo {
    display: flex;
    gap: 3%;
    margin-bottom: 16px;
}

.photo-wide {
    width: 65%;
}

.photo-square {
    width: 32%;
}

.category__title {
    margin: 0;
    font-weight: bold;
}

@media (max-width: 450px) {
    .photo-square {
        width: 49%;
        object-fit: cover;
        object-position: center;
    }
    .photo-wide {
        width: 49%;
        object-fit: cover;
        object-position: center;
    }
    .down-photo {
        width: 49%;
        object-fit: cover;
        object-position: right;
    }
    .category__photo {
        gap: 2%;
    }
}
/* #endregion */
/* #region how-to-buy */

.how-to-buy {
    max-width: 1020px;
    margin: 0 auto;
    display: flex;
    gap: 24px;
}

.how-to-buy__title {
    flex-basis: 50%;
    margin-top: 0;
    margin-bottom: 64px;
    font-size: 48px;
    line-height: 100%;
    font-weight: bold;
    letter-spacing: -1.5px; 
}

.how-to-buy__content {
    flex-basis: 50%;
}

.how-to-buy__benefits {
    display: flex;
    flex-direction: column;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
    margin-bottom: 40px;
    font-weight: bold;
}

.how-to-buy__description {
    margin-top: 40px;
    margin-bottom: 120px;
}

@media (max-width: 450px) {
    .how-to-buy {
        max-width: 280px;
        flex-direction: column;
    }
    .how-to-buy__title {
        font-size: 32px;
        margin-bottom: 32px;
    }
    .how-to-buy__benefits {
        margin-bottom: 40px;
    }
    .how-to-buy__description {
        margin-top: 50px;
        margin-bottom: 120px;
    }
}

/* #endregion */
/* #region footer */

.footer {
    position: sticky;
    height: 460px;
    bottom: 0;
    z-index: -1;
    background-image: url(../img/footer-bg.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* #endregion */
