@font-face {
    font-family: 'Mont';
    src: local('Mont Regular'), local('Mont-Regular'),
    url('fonts/Mont-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mont';
    src: local('Mont SemiBold'), local('Mont-SemiBold'),
    url('fonts/Mont-SemiBold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

* {
    font-family: Mont, serif;
}

:root {
    --text-color: #1A1C1F;
    --button-main-color: #4E46B4;
}

body {
    margin: 0;
    padding: 0;
    background: #f5f5f5;
}

.header {
    width: 100%;
    display: flex;
    flex-direction: column;
    font-family: Mont, serif;
}

.header__top {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e3e3e3;
    padding: 30px 0;
    box-sizing: border-box;
}

.header__logo {
    width: 245px;
    height: auto;
}

.header__logoImg {
    width: 100%;
    height: auto;
}

.headerForm {
    display: flex;
}

.headerForm__input {
    outline: none;
    border: 1px solid #e3e3e3;
    width: 700px;
    box-sizing: border-box;
    padding: 12px 50px 12px 28px;
    font-size: 16px;
    transition: all ease-in-out 0.3s;
}

.headerForm__input:hover,
.headerForm__input:active,
.headerForm__input:focus {
    border: 1px solid #cc3d3d;
}

.headerForm__submit {
    font-size: 16px;
    color: #fff;
    width: 80px;
    height: 50px;
    background: #cc3d3d;
    border: none;
    outline: none;
    cursor: pointer;
    transition: opacity ease-in-out 0.3s;
}

.headerForm__submit:hover {
    opacity: 0.7;
}

.header__registration {
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    padding: 12px 16px;
    background: #85C1E9;
    color: #000;
    text-decoration: none;
    cursor: pointer;
    transition: opacity ease-in-out 0.3s;
}

.header__registration:hover {
    opacity: 0.7;
}

.MainBlock {
    width: 960px;
    margin: 0 auto;
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.MainBlock__header {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.MainBlock__logo {
    width: 150px;
    height: 50px;
}

.Title {
    width: 100%;
    display: inline-block;
    font-weight: 600;
    font-size: 20px;
    line-height: 32px;
    color: #000;
    padding: 16px 14px;
    border-bottom: 1px solid #EBEBEB;
    box-sizing: border-box;
    margin: 0;
}

.part {
    width: 100%;
    margin-top: 12px;
    display: flex;
}

.part__img {
    width: 380px;
    height: 380px;
    background: #fff;
}

.part__info {
    display: flex;
    flex-direction: column;
    width: 560px;
    margin-left: 22px;
}

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

.part__block {
    width: 45%;
    padding: 8px 12px;
    position: relative;
    background: #fff;
    border-radius: 4px;
    margin-bottom: 10px;
}

.part__blockTitle {
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
    color: #000;
    margin: 0;
}

.part__text {
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    color: #6b727c;
    margin: 0;
}

.part__actions {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #EBEBEB;
    padding: 12px 0;
}

.part__price {
    padding-left: 24px;
    font-size: 20px;
    line-height: 32px;
    color: #000;
    margin: 0;
}

.part__button {
    padding: 12px 16px;
    background: var(--button-main-color);
    border: none;
    outline: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

.SubTitle {
    width: 100%;
    font-style: normal;
    font-size: 20px;
    line-height: 32px;
    color: #000;
    margin: 24px 0 12px 0;
}

.CrossParts {
    margin: 12px 0;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

.CrossParts__part {
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
    color: #6b727c;
    padding: 16px;
    background: #FFFFFF;
    border-radius: 4px;
    margin: 8px 12px;
    text-transform: capitalize;
}

.partAds {
    margin: 12px 0;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.partAd {
    width: 32%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    color: #6b727c;
    padding: 16px;
    margin-bottom: 16px;
    background: #FFFFFF;
    border-radius: 4px;
    box-sizing: border-box;
}

.partAd__name {
    font-size: 14px;
    line-height: 24px;
    margin: 8px 0;
    text-align: center;
}

.partAd__img {
    width: 50%;
    min-height: 112px;
}

.partAd__block {
    width: 100%;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.partAd__link {
    background: var(--button-main-color);
    color: #fff;
    padding: 8px;
    border-radius: 4px;
    box-sizing: border-box;
    text-decoration: none;
}

.partAd__make,
.partAd__price {
    margin: 0;
}

.Cars {
    margin: 12px 0;
    width: 100%;
    max-height: 500px;
    overflow-y: scroll;
    display: flex;
    flex-direction: column;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #999CA0;
    padding: 16px;
    background: #FFFFFF;
    border-radius: 4px;
    text-transform: capitalize;
}

.Cars__row {
    display: flex;
    border-bottom: 1px solid #999CA0;
}

.Cars__cell {
    border-right: 1px solid #999CA0;
    padding: 8px;
    word-break: break-all;
}

.About {
    padding: 16px;
    background: #FFFFFF;
    border-radius: 4px;
    margin: 12px 0;
}

.About__text {
    width: 90%;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #6b727c;
    margin: 8px 0;
}

.Review {
    width: 100%;
    padding: 12px;
    margin: 24px 0;
    background: #FFFFFF;
    border-radius: 4px;
}

.Review__image {
    width: 15%;
    margin-bottom: 16px;
}

.Review__text {
    width: 90%;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: #6b727c;
    margin: 0;
}

.footer {
    font-family: Mont, serif;
    width: 100%;
    background: #eff0f2;
}

.footer__content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer__search {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 48px 0;
    border-bottom: 2px solid #fff;
}

.footer__searchInfo {
    width: 400px;
}

.footer__searchTitle {
    font-size: 38px;
    font-weight: 700;
    line-height: 40px;
}

.footer__searchInfoText {
    font-size: 14px;
}

.footerForm {
    display: flex;
    width: 700px;
}

.footerForm__input {
    outline: none;
    border: 1px solid #e3e3e3;
    width: 500px;
    box-sizing: border-box;
    padding: 14px 55px 14px 22px;
    margin: 0 8px;
    font-size: 16px;
    transition: all ease-in-out 0.3s;
}

.footerForm__input:hover,
.footerForm__input:active,
.footerForm__input:focus {
    border: 1px solid #cc3d3d;
}

.footerForm__submit {
    font-size: 16px;
    color: #fff;
    background: #cc3d3d;
    padding: 0 32px;
    border: none;
    outline: none;
    cursor: pointer;
    transition: opacity ease-in-out 0.3s;
}

.footerForm__submit:hover {
    opacity: 0.7;
}

.footer__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 36px 0;
    border-bottom: 2px solid #fff;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.footer__contacts {
    align-self: center;
}

.footer__logo {
    width: 235px;
    height: auto;
}

.footer__menu {
    align-self: start;
}

.footer__menuTitle {
    font-weight: 700;
    text-transform: uppercase;
}

.footer__menuList {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.footer__menuItem {
    font-size: 14px;
    margin: 12px 0;
    line-height: 1.2;
}

.footer__menuLink {
    text-decoration: none;
    cursor: pointer;
}

.footer__menuLink:hover {
    color: #cc3d3d;
}

.footer__banking {
    width: 150px;
    height: auto;
}

.footer__copyright {
    font-size: 12px;
}

@media screen and (max-width: 1100px) {
    body {
        width: 100%;
    }

    .header__top {
        width: 100%;
        flex-direction: column;
        padding: 12px;
    }

    .headerForm {
        margin: 12px 0;
    }

    .headerForm__input {
        width: 100%;
        font-size: 14px;
    }

    .MainBlock {
        width: 100%;
        padding: 0;
    }

    main {
        width: 100%;
        padding: 24px;
        box-sizing: border-box;
    }

    .part {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .part__img {
        width: 200px;
        height: 200px;
        background: #fff;
    }

    .part__info {
        margin-left: 0;
        margin-top: 30px;
        width: 80%;
    }

    .part__block {
        width: 100%;
        box-sizing: border-box;
    }

    .part__blockTitle {
        font-size: 18px;
        line-height: 18px;
    }

    .part__text {
        font-size: 14px;
        line-height: 14px;
        margin: 8px 0;
    }

    .part__price {
        padding: 0;
    }

    .part__priceTitle,
    .part__priceCost {
        font-size: 18px;
    }

    .part__button {
        width: 80%;
        font-size: 14px;
        line-height: 14px;
        padding: 16px;
    }

    .SubTitle,
    .About,
    .Review {
        width: 80%;
    }

    .partAds {
        width: 80%;
        flex-direction: column;
    }

    .partAd {
        width: 100%;
    }

    .Cars {
        width: 80%;
        overflow: scroll;
    }

    .Cars__row {
        width: 1200px;
    }

    .Review__image {
        width: 40%;
        margin-bottom: 8px;
    }

    .Review__info {
        flex-direction: column;
        margin: 24px;
    }

    .footer__search {
        flex-direction: column;
    }

    .footer__searchInfo {
        width: 100%;
        padding: 0 12px;
        box-sizing: border-box;
    }

    .footer__searchTitle {
        font-size: 22px;
        line-height: 22px;
    }

    .footer__searchText {
        font-size: 14px;
    }
    .footerForm {
        width: 100%;
    }

    .footerForm__input {
        width: 100%;
        font-size: 14px;
        padding: 8px;
    }

    .footer__top {
        flex-direction: column;
        margin: 0 24px;
    }

    .footer__menu {
        width: 100%;
    }

    .footer__bottom {
        flex-direction: column;
    }
}
