@import url(./font.css);

/* O'zgaruvchilar */

:root {
    --MB: "MB", sans-serif;
    --MM: "MM", sans-serif;
    --MR: "MR", sans-serif;
    --PO: 'PO', sans-serif;
    --primary: #000;
    --secondary: #fff;
    --dark-gray: #282828;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-decoration: none;
}

body {
    background-color: var(--primary);
}

.page__header {
    background-color: var(--dark-gray);
    padding-block: 6px;
}

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

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

.header__nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav__link,
.footer__nav-link {
    color: var(--secondary);
    font-family: var(--MB);
    font-size: 20px;
    line-height: 24px;
}

.user__action {
    display: flex;
    align-items: center;
    gap: 25px;
}

.burger__menu {
    width: 30px;
    height: 21px;
    display: none;
    align-items: center;
    flex-direction: column;
    justify-content: space-between;
    background-color: transparent;
    border: none;
}

.burger__menu>span {
    width: 100%;
    height: 2px;
    background-color: var(--secondary);
}


.banner {
    height: 625px;
    background-image: url(../image/banner.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 38px;
}

.banner__title {
    color: var(--secondary);
    font-family: var(--PO);
    font-size: 100px;
    line-height: 75px;
}

.banner__link {
    padding: 13px 14px;
    background-color: var(--secondary);
    border-radius: 10px;
    color: rgba(23, 23, 24, 1);
    font-family: var(--MM);
    font-size: 20px;
    line-height: 24px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 11px;
}

.product {
    margin-top: 30px;
}

.product__content {
    display: flex;
    gap: 30px;
}

.content__text {
    margin-top: 33px;
    color: var(--secondary);
    font-family: var(--MM);
    font-size: 22px;
    line-height: 27px;
}

.content__img {
    max-width: 552px;
    width: 100%;
}

.product__content:nth-of-type(2) {
    margin-top: 50px;
    align-items: center;
}

.info {
    margin-top: 50px;
}

.info__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.content__left-text,
.content__right-text {
    color: var(--secondary);
    font-family: var(--MM);
    font-size: 22px;
    line-height: 27px;
    text-align: right;
    max-width: 333px;
    width: 100%;
}

.content__right-text {
    text-align: left;
}

.models {
    margin: 79px 0 50px;
}

.models__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.content__card {
    background-color: var(--secondary);
    padding: 15px;
    width: 255px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 6px;
}

.card__title {
    color: var(--primary);
    font-family: var(--MB);
    font-size: 20px;
    line-height: 24px;
}

.card__img {
    max-width: 127px;
    width: 100%;
    object-fit: contain;
    height: 167px;
}

.card__price {
    color: var(--primary);
    font-family: var(--MR);
    font-size: 14px;
    line-height: 17px;
    text-transform: uppercase;
}

.card__btn {
    margin-top: 10px;
    padding: 7px 57px;
    background-color: var(--primary);
    color: var(--secondary);
    border: none;
    color: rgba(255, 255, 255, 1);
    font-family: var(--MB);
    font-size: 16px;
    line-height: 20px;
    text-transform: uppercase;
    transition: .3s;

    &:hover {
         scale: 1.1;
         cursor: pointer;
    }
}

.page__footer {
    background-color: var(--dark-gray);
    padding: 81px 0;
}

.footer__nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.footer__content {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Media Query */

@media(max-width: 1000px) {
    .content__img {
        max-width: 450px;
        width: 100%;
    }

    .models__content,
    .page__footer .content {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
}



@media(max-width: 768px) {

    .banner {
        height: 500px;
    }

    .banner__title{
        font-size: 80px;
        line-height: 100%;
    }

    .product__content {
        flex-direction: column-reverse;
        align-items: center;
        gap: 20px;
    }

    .product__content:nth-of-type(2){
        flex-direction: column;
    }

    .content__text,
    .content__left-text,
    .content__right-text {
        font-size: 18px;
        margin-top: 0;
        line-height: 120%;
    }

    .info__content {
        flex-direction: column;
    }

    .content__left-text,
    .content__right-text {
        text-align: center;
    }
}



@media(max-width: 600px) {
    .banner {
        height: 450px;
        gap: 25px;
    }

    .banner__title {
        font-size: 60px;
    }

    .page__footer {
        padding: 60px 0;
    }
}

@media (max-width: 500px) {
    .user__action {
        display: none;
    }
    .burger__menu {
        display: flex;
    }

    .header__nav {
        gap: 15px;
    }

    .header__nav img {
        width: 80px;
        height: 45px;
    }

    .nav__link {
        font-size: 16px;
    }
}

@media(max-width: 425px) {
    .banner__title {
        font-size: 50px;
    }

    .banner__link {
        font-size: 16px;
        padding: 10px;
    }

    .content__text,
    .content__left-text,
    .content__right-text {
        font-size: 16px;
    }

      .page__footer {
        padding: 40px 0;
    }
}

@media(max-width:375px) {
    .header__nav {
        gap: 10px;
    }

    .banner__title{
        font-size: 40px;
    }
}