@import "../reset/reset.css";

@font-face {
    font-family: 'Montserrat';
    src: url('../../fonts/Montserrat/Montserrat-VariableFont_wght.ttf') format('truetype');
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
    letter-spacing: 2px;
    color: #3e3e3e;
    background: #f6f6f6;
    min-width: 400px;
}

a {
    color: #3e3e3e;
}

a:hover {
    text-decoration: underline;
}

strong {
    font-weight: 800;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    background: #fff;
}

/* header */

.header__difference {
    display: none;
    width: 100%;
    height: 40px;
    background: #F6F6F6;
    margin-bottom: 35px;
    text-align: right;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
}

.header__difference img {
    height: 30px;
    padding-top: 10px;
    padding-right: 15px;
}

.nav__menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 10;
    font-size: 20px;
    font-weight: 600;
    color: #C0C9C8;
    letter-spacing: 3px;
    text-align: right;
}

.nav__menu a {
    color: #C0C9C8;;
}

.menu-open {
    display: block;
}

.menu-close {
    display: none;
}

.nav__menu nav {
    text-align: left;
    padding: 50px 60px 0;
}

.nav__menu li {
    padding-bottom: 25px;
}

.nav__menu img {
    padding-top: 30px;
    padding-right: 30px;
    width: 55px;
    height: 55px;
}

.header__wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 60px;
}

.header__logo img {
    width: 200px;
}

.header__menu {
    display: flex;
    gap: 25px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

@media (max-width: 1040px) {
    .header__menu {
        gap: 15px;
    }
}

@media (max-width: 975px) {
    .header__menu {
        gap: 10px;
    }
}

@media screen and (max-width: 500px) {
    .header__difference {
        display: block;
    }

    .header__wrapper {
        display: none;
    }

}

/* end header */

.section__difference {
    width: 100%;
    height: 35px;
    background: #F6F6F6;
    margin-bottom: 45px;
}

@media (max-width: 935px) {
    .section__difference {
        margin-bottom: 35px;
    }
}

@media (max-width: 500px) {
    main > .section__difference.hide {
        display: none;
    }

    .section_about {
        margin-top: 40px;
    }
}

/* section */

.section {
    padding: 0 60px;
    margin-bottom: 45px;
}

.section__content {
    display: grid;
    grid-column-gap: 75px;
}

.photo-right .section__content {
    grid-template-columns: auto 400px;
    grid-template-rows: 1fr 1fr;
}

.photo-left .section__content {
    grid-template-columns: 400px auto;
    grid-template-rows: 1fr 1fr 1fr;
}

.section__title, .section__description-title {
    font-size: 24px;
    font-weight: 600;
    color: #C0C9C8;
    letter-spacing: 3px;
}

.section__description-title {
    padding-bottom: 14px;
    min-width: fit-content;
}

.section__title.with_logo .section__logo {
    display: none;
}

.section__photo img {
    max-width: 400px;
}

.photo-right .section__title {
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 1;
    grid-row-end: 2;
    align-self: start;
}

.photo-right .section__photo {
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 1;
    grid-row-end: 3;
}

.photo-right .section__description {
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 2;
    grid-row-end: 3;
    align-self: end;
}

.photo-left .section__title {
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 1;
    grid-row-end: 2;
    justify-self: start;
    align-self: start;
}

.photo-left .section__photo {
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 1;
    grid-row-end: 4;
}

.photo-left .section__description {
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 2;
    grid-row-end: 3;
    justify-self: start;
    align-self: center;
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    width: 100%;
}

.photo-left .section__btn {
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 3;
    grid-row-end: 4;
    justify-self: end;
    align-self: end;
}

.section__description-text {
    width: 100%;
}

.section__description-textgroup {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    padding-bottom: 12px;
}

.section__description-price {
    font-weight: 800;
    text-align: right;
}

.section__btn img {
    max-width: 235px;
}

@media (max-width: 1040px) {
    .photo-right .section__content {
        grid-template-columns: auto 350px;
    }

    .photo-left .section__content {
        grid-template-columns: 350px auto;
        grid-template-rows: 1fr 2fr 1fr;
    }

    .section__photo img {
        max-width: 350px;
    }
}

@media (max-width: 975px) {
    .photo-right .section__content {
        grid-template-columns: auto 300px;
    }

    .photo-left .section__content {
        grid-template-columns: 300px auto;
        grid-template-rows: 1fr 2fr 1fr;
    }

    .section__photo img {
        max-width: 300px;
    }
}

@media (max-width: 950px) {
    .section__content {
        grid-column-gap: 45px;
    }

    body {
        font-size: 12px;
    }

    .section__title, .section__description-title {
        font-size: 18px;
    }

    .section__btn img {
        max-width: 200px;
    }
}

@media (max-width: 935px) {
    .section {
        padding: 0 25px;
        margin-bottom: 45px;
    }

    .section__content {
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        justify-content: center;
        align-content: center;
    }

    .section__photo, .section__description {
        padding-bottom: 15px;
    }

    .section__title {
        padding-bottom: 30px;
    }

    .section__photo img, .section__description {
        max-width: 600px;
    }

    .photo-right .section__title, .photo-left .section__title {
        align-self: center;
    }

    .photo-right .section__description {
        display: flex;
        flex-wrap: nowrap;
        gap: 20px;
        width: 100%;
    }
}

@media (max-width: 650px) {
    body {
        font-size: 10px;
    }

    .section__title, .section__description-title {
        font-size: 16px;
    }

    .photo-right .section__description {
        font-size: 9px;
        gap: 10px;
    }

    .photo-right .section__description-title {
        font-size: 14px;
    }

    .section__photo img, .section__description {
        max-width: 450px;
    }

    .section__btn img {
        max-width: 150px;
    }
}

@media screen and (max-width: 500px) {
    body {
        font-size: 10px;
    }

    .section__title, .section__description-title {
        font-size: 16px;
    }

    #about {
        height: 25px;
    }

    .section__title.with_logo {
        width: 350px;
        display: flex;
        flex-wrap: nowrap;
        gap: 40px;
        align-items: center;
    }

    .section__logo img {
        width: 150px;
    }

    .section__text {
        text-align: right;
    }

    .section__title.with_logo .section__logo {
        display: block;
    }

    .section__description {
        max-width: 350px;
    }

    .section__photo img {
        max-width: 100%;
    }

    .photo-right .section__photo, .photo-right .section__description {
        align-self: center;
    }
}

/* end section */

/* footer */

footer {
    margin-top: 65px;
}

.footer__difference {
    height: 70px;
    background: #F6F6F6;
}

.footer__difference.hide {
    display: none;
}

.footer__content {
    padding: 30px 60px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__logo img {
    width: 200px;
}

.footer__title {
    font-size: 16px;
    font-weight: 600;
    color: #C0C9C8;
    letter-spacing: 3px;
    display: none;
    padding-top: 65px;
}

.footer__icons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 25px;
}

.footer__icons img {
    width: 45px;
}

@media (max-width: 650px) {
    .footer__title {
        display: block;
    }

    .footer__content {
        flex-wrap: wrap;
        flex-direction: column;
        gap: 25px;
        padding: 65px 0;
    }
}

@media screen and (max-width: 500px) {
    .footer__difference {
        height: 80px;
        background: #F6F6F6;
    }

    .footer__difference.hide {
        display: block;
    }

    .footer__content {
        padding: 120px 0;
    }
}

/* end footer */