@import 'fonts.css';

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    border: none;
    outline: none;
    font-weight: 400;
}

.container {
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

button {
    cursor: pointer;
}

:root {
    --font-family: "Playfair Display", sans-serif;
    --second-family: "Roboto", sans-serif;
}

.nav {
    padding: 25px 0;
    position: fixed;
    top: 0;
    width: 100%;
    background: white;
    z-index: 5;
}

.logo {
    display: flex;
    align-items: center;
    transition: all .5s;
    justify-content: center;
}

.logo img {
    transition: .5s;
}

.nav__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__list {
    display: flex;
    gap: 40px;
}

.nav__list_link a {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 12px;
    color: #000;
    display: flex;
    gap: 4px;
    align-items: center;
}

.nav__list_link a img {
    transition: 0.4s;
}

.nav__list_link a:hover img {
    transform: rotate(-180deg);
}

.form {
    display: flex;
    gap: 4px;
}

.form input {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 14px;
    color: #4b4848;
    padding: 6px 12px;
    border: 1px solid #41a28e;
    cursor: pointer;
    transition: .5s;
}

.form button {
    padding: 7px;
    background: #41a28e;
    cursor: pointer;
}

.nav__menu {
    display: flex;
    align-items: center;
}

.nav__menu_btn {
    width: 30px;
    height: 31px;
    background: #41a28e;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
}

.nav__menu_btn_line {
    width: 80%;
    height: 2px;
    background: white;
    position: relative;
}

.nav__menu_btn_line::before {
    content: '';
    width: 100%;
    height: 100%;
    background: white;
    position: absolute;
    left: 0;
    top: -6px;
}

.nav__menu_btn_line::after {
    content: '';
    width: 100%;
    height: 100%;
    background: white;
    position: absolute;
    left: 0;
    top: 6px;
}

.nav__list_link {
    position: relative;
}

.nav__list_link a:hover {
    color: #41a28e;
    transition: .3s;
}

.nav__list_link:hover .dropdown {
    transform: translateY(0);
    opacity: 1;
    z-index: 5;
}

.dropdown {
    width: 180px;
    border: 1px solid #e5e5e5;
    border-radius: 2px;
    position: absolute;
    top: 25px;
    left: 0;
    transform: translateY(50px);
    opacity: 0;
    transition: 0.4s;
    z-index: -5;
    background: #fff;
}

.dropdown__link {
    padding: 12px 0 12px 30px;
    width: 100%;

}

.dropdown__link:not(:last-child) {
    border: 1px solid #e5e5e5;
}

.header__content {

    min-height: 749px;
    background: url('../img/header-bg.png');
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.header__content_title {
    color: rgb(255, 255, 255);
    font-family: 'Playfair Display';
    font-size: 50px;
    line-height: 67px;
    background: rgba(0, 0, 0, 0.7);
    padding: 17px 61px;
    transition: .5s;
}

.header__content_subTitle {
    color: rgb(255, 255, 255);
    font-family: 'Playfair Display';
    font-size: 22px;
    line-height: 29px;
    margin-top: 30px;
}

.header__content_btn span {
    color: rgb(0, 0, 0);
    font-family: 'Playfair Display';
    font-size: 12px;
    line-height: 16px;
    z-index: 2;
    position: relative;
}

.header__content_btn {
    background: #fff;
    padding: 22px 36px;
    margin-top: 50px;
    position: relative;
    overflow: hidden;
}

.header__content_btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #41a28e;
    opacity: 0;
    top: 0;
    left: -100%;
    transition: .4s;
}

.header__content_btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #41a28e;
    opacity: 0;
    top: 0;
    right: -100%;
    transition: .4s;
}

.header__content_btn:hover.header__content_btn::before {
    left: 0;
    opacity: 1;
}

.header__content_btn:hover.header__content_btn::after {
    right: 0;
    opacity: 1;
}

.header__content_btn:hover span {
    color: #fff;
}

/* main commerce */

.commerce {
    padding-top: 48px;
    padding-bottom: 72px;
}

.commerce__content_cards {
    display: flex;
    justify-content: space-between;
}

.commerce__content_card {
    display: flex;
    overflow: hidden;
    position: relative;
}

.commerce__content_card img {
    max-width: 100%;
    transition: .5s;
}

.commerce__content_card:hover img {
    transform: scale(1.2);
}

.commerce__content_card span {
    position: absolute;
    bottom: -30%;
    background: rgba(75, 72, 72, 0.7);
    width: 100%;
    color: rgb(255, 255, 255);
    font-family: 'Playfair Display';
    font-size: 25px;
    line-height: 33px;
    text-align: center;
    text-transform: capitalize;
    /* height: 0;
    opacity: 0; */
    transition: .5s;
}

.commerce__content_card:hover span {
    /* height: 80px;
    opacity: 1; */
    bottom: 0;
}

.commerce__content_text {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 52px;
    gap: 18px;
}

.commerce__content_title {
    color: rgb(0, 0, 0);
    font-family: 'Playfair Display';
    font-size: 50px;
    font-weight: 400;
    line-height: 67px;
    letter-spacing: 0%;
    text-align: center;
}

.commerce__content_descr {
    color: rgb(102, 102, 102);
    font-family: 'Roboto';
    font-size: 16px;
    font-weight: 400;
    line-height: 19px;
    letter-spacing: 0%;
    text-align: center;
    max-width: 496px;
    width: 100%;
}

/*  */

.project {
    background: url(../img/project.png);
    min-height: 404px;
    display: flex;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
}

.project__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.project__content_subTitle {
    color: rgb(255, 255, 255);
    font-family: 'Playfair Display';
    font-size: 20px;
    font-weight: 400;
    line-height: 27px;
    letter-spacing: 0%;
}

.project__content_title {
    color: rgb(255, 255, 255);
    font-family: 'Playfair Display';
    font-size: 50px;
    font-weight: 400;
    line-height: 67px;
    letter-spacing: 0%;
    text-align: left;
}

.project__content_btn {
    max-width: max-content;
}

.custom {
    padding: 50px 0;
}

.custom__content_text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
}

.custom__content_title {
    color: rgb(0, 0, 0);
    font-family: 'Playfair Display';
    font-size: 50px;
    font-weight: 400;
    line-height: 67px;
    text-align: center;
}

.custom__content_descr {
    color: rgb(102, 102, 102);
    font-family: 'Roboto';
    font-size: 16px;
    font-weight: 400;
    line-height: 19px;
    text-align: center;
    max-width: 496px;
}

.custom__content_cards {
    display: flex;
    justify-content: space-between;
    margin-top: 69px;
}

.custom__content_card_title {
    color: rgb(0, 0, 0);
    font-family: 'Playfair Display';
    font-size: 22px;
    font-weight: 400;
    line-height: 29px;
}

.custom__content_card_price {
    color: rgb(0, 0, 0);
    font-family: 'Playfair Display';
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    margin-top: 6px;
    font-feature-settings: 'pnum'on, 'lnum'on, 'liga'off;
    display: flex;
    gap: 10px;
}

.custom__content_card_img {
    display: flex;
    margin-bottom: 43px;
    position: relative;
    overflow: hidden;
}

.custom__content_card_info {
    padding: 16px 20px;
    background: rgb(0, 0, 0, .7);
    position: absolute;
    bottom: -15%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: .5s;
}

.custom__content_card_info_cart {
    display: flex;
    align-items: center;
    gap: 16px;
}

.custom__content_card_info_cart span {
    color: rgb(255, 255, 255);
    font-family: 'Playfair Display';
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
}

.custom__content_card_info_list {
    display: flex;
    gap: 24px;
}

.custom__content_card:hover .custom__content_card_info {
    bottom: 0;
}

.custom__content_card_price span {
    color: rgb(145, 145, 145);
    text-decoration: line-through;
}

.custom__content_card:nth-child(2) {
    position: relative;
}

.custom__content_card:nth-child(4) {
    position: relative;
}

.custom__content_card:nth-child(4)::before {
    content: 'SALE';
    background: rgb(75, 72, 75);
    padding: 10px 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: max-content;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    color: rgb(255, 255, 255);
    font-family: 'Roboto';
    font-size: 12px;
    font-weight: 400;
    line-height: 14px;
}

.custom__content_card:nth-child(2)::before {
    content: 'OUT OF STOCK';
    background: rgb(75, 72, 75);
    padding: 10px 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: max-content;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    color: rgb(255, 255, 255);
    font-family: 'Roboto';
    font-size: 12px;
    font-weight: 400;
    line-height: 14px;
}

/* footer */

.footer {
    padding: 36px 0;
    background-color: black;
}

.footer__item_title {
    color: rgb(255, 255, 255);
    font-family: 'Playfair Display';
    font-size: 24px;
    font-weight: 400;
    line-height: 32px;
    letter-spacing: 0%;
    text-align: left;
}

.footer__item_list {
    display: flex;
    flex-direction: column;
    margin-top: 40px;
}

.footer__item_list_link {
    color: rgb(255, 255, 255);
    font-family: 'Roboto';
    font-size: 14px;
    font-weight: 400;
    line-height: 16px;
    height: 36px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: .3s;
}

.footer__item_list_link:hover {
    color: #41a28e;
}

.solial-item {
    height: 30px;
}

.footer__content {
    display: flex;
}

.footer__item form {
    margin-top: 40px;
    display: flex;
}

.footer__item input {
    width: 100%;
    max-width: 200px;
    color: rgb(145, 145, 145);
    font-family: 'Roboto';
    font-size: 14px;
    font-weight: 400;
    line-height: 16px;
    padding: 14px 10px;
}

.footer__item button {
    padding: 0 10px;
    background: #41a28e;
    color: rgb(255, 255, 255);
    font-family: 'Roboto';
    font-size: 16px;
    font-weight: 400;
    line-height: 19px;
}

.footer__content {
    justify-content: space-between;
}

.footer__item_descr {
    color: rgb(255, 255, 255);
    font-family: 'Roboto';
    font-size: 14px;
    font-weight: 400;
    line-height: 16px;
    max-width: 235px;
    margin: 20px 0;
}

.footer__item_payments {
    display: flex;
    gap: 25px;
    justify-content: space-between;
}

.footer__item_payments-a:hover {
    transform: translateY(-5px);
    transition: .5s;
}