@media only screen and (max-width: 1614px) {
    .page {
        min-width: 320px;
    }

    .header__logo {
        left: 67px;
        width: auto;
    }
    .markets::before {
        left: auto;
        right: -806px;
    }
    .markets__block {
        left: auto;
        right: 60px;
    }

    .history-today::before {
        left: auto;
        right: -650px;
    }
    .history-today__text {
        left: auto;
        right: 200px;
    }
}

@media only screen and (max-width: 1530px) {
    .header__bg {
        width: auto;
        right: 14.3%;
        min-width: 1135px;
    }
}

@media only screen and (max-width: 1406px) {
    .page__brands {
        margin: 0 275px 0 67px;
    }

    .header__top {
        margin: 0 67px;
        width: auto;
    }

    .brands {
        width: 1050px;
        padding: 0 28px 0 0;
    }
    .brands__bg {
        right: 0;
    }
}

@media only screen and (max-width: 1366px) {
    .page__history {
        margin: 0 60px 150px;
    }
    .page__contacts {
        margin: 0 60px;
    }
    .page__footer {
        margin: 0 60px;
    }

    .markets {
        background-position: -85px 0;
        background-size: auto 780px;
        height: 780px;
    }
    .markets::before {
        right: -800px;
    }

    .our-values {
        width: auto;
        margin-left: 53px;
        margin-right: 53px;
    }

    .history {
        width: auto;
    }

    .contacts {
        width: auto;
    }
    .contacts__item:nth-child(2n) {
        clear: both;
    }

    .footer {
        width: auto;
    }
}

@media only screen and (max-width: 1280px) {
    .header__bg {
        width: auto;
        right: 130px;
        min-width: 0;
    }

    .markets {
        background-position: right 50% top 0;
    }

    .our-values__items {
        gap: 20px;
    }
}

@media only screen and (max-width: 1150px) {
    .page__brands {
        margin: 0 20px 0 67px;
    }

    .brands {

        width: auto;
        padding: 0 28px 0 0;
    }

    .history__text {
        margin-left: 20px;
    }
}

@media only screen and (max-width: 1024px) {
    .page__header {
        margin-bottom: 120px;
    }
    .page__brands {
        margin: 0 0 0 60px;
        top: 587px;
    }
    .page__markets {
        margin: 0 auto 120px;
    }
    .page__our-values {
        margin: 0 45px 110px;
    }
    .page__history {
        margin: 0 60px 110px;
    }
    .page__history-today {
        margin: 0 auto 220px;
    }

    .header {
        background-size: auto 100%;
        height: 768px;
    }
    .header__bg {
        height: 587px;
        right: 160px;
    }
    .header__bg::before {
        right: 248px;
        top: -428px;
    }
    .header__logo {
        top: 31px;
        left: 60px;
    }
    .header__logo-img {
        height: 450px;
    }
    .header__logo-text {
        font-size: 18px;
        line-height: 32px;
        top: 412px;
        left: 77px;
    }
    .header__top {
        margin: 0 60px;
    }

    .brands {
        height: 72px;
        width: 800px;
    }
    .brands__items {
        padding-top: 11px;
    }
    .brands__item {
        margin: 0 0 0;
        width: 16.25%;
    }
    .brands__pic {
        display: block;
        height: 50px;
    }

    .markets {
        background-size: auto 700px;
        height: 700px;
    }
    .markets::before {
        right: -1040px;
    }
    .markets__block {
        padding: 165px 0 0;
        width: 320px;
        height: auto;
        right: 65px;
    }
    .markets__title {
        font-size: 60px;
        line-height: 96px;
    }
    .markets__text {
        font-size: 18px;
        line-height: 32px;
    }

    .our-values {
        padding: 0;
    }
    .our-values__title {
        font-size: 60px;
        line-height: 96px;
        margin: 0 0 60px;
    }
    .our-values__items {
        gap: 45px
    }
    .our-values__item {
        font-size: 18px;
        line-height: 32px;
        width: 270px;
    }
    .our-values__pic {
        width: 70px;
        height: 70px;
        margin: 0 auto 30px;
    }

    .history {
        height: 505px;
    }
    .history__item {
        margin: 0 0 60px;
    }
    .history__item::after {
        background-size: 52px 26px;
        width: 52px;
        height: 26px;
        bottom: -26px;
        left: 195px;
    }
    .history__left {
        width: 460px;
        height: 399px
    }
    .history__photo {
        width: 460px;
        height: 307px;
    }
    .history__photo-desc {
        font-size: 18px;
        line-height: 32px;
        padding: 26px 40px 34px;
    }
    .history__right {
        width: 320px;
        height: 399px;
        padding: 0;
    }
    .history__text {
        width: auto;
        padding: 0;
        margin: 0 20px;
        font-size: 38px;
        line-height: 61px;
    }
    .history__years::before {
        width: 40%;
    }
    .history__years::after {
        width: 30%;
    }
    .history__years-wrap {
        left: -200px;
        gap: 40px;
    }
    .history__year {
        font-size: 25px;
        line-height: 30px;
    }
    .history__year_active {
        width: 80px;
        height: 46px;
        font-size: 36px;
        line-height: 46px;
    }

    .history-today {
        background-position: 0 -100px;
        background-size: 100% auto;
        height: 500px;
    }
    .history-today::before {
        right: -875px
    }
    .history-today__text {
        font-size: 38px;
        line-height: 61px;
        right: 120px;
        top: 70px
    }

    .contacts__title {
        font-size: 60px;
        line-height: 96px;
        margin: 0 0 60px;
    }

    .contact {
        padding: 0 0 60px;
    }
    .contact__title {
        font-size: 24px;
        line-height: 38px;
        margin: 0 0 24px;
    }
    .contact__item {
        margin: 0 0 19px;
    }
    .contact__link {
        font-size: 18px;
        line-height: 22px;
    }
}

@media only screen and (max-width: 900px) {
    .page__brands {
        margin: 0 24px 0 60px;
    }

    .brands {
        width: auto;
    }

    .history__right {
        margin-right: -30px;
    }
}

@media only screen and (max-width: 768px) {
    .page__header {
        margin: 0;
    }
    .page__brands {
        position: relative;
        margin: 0;
        top: 0;
        left: 0;
        right: 0;
    }
    .page__contacts {
        margin: 0 60px 40px;
    }

    .header {
        background-position: 48% 0;
        background-size: auto 560px;
        height: 560px;
    }
    .header__bg {
        height: 560px;
        width: 700px;
    }
    .header__logo {
        top: 25px;
    }
    .header__logo-img {
        height: 350px;
    }
    .header__logo-text {
        top: 327px;
        left: 60px;
        width: 280px;
    }
    .header__map {
        position: absolute;
        top: 489px;
        left: 60px;
        right: auto;
    }

    .brands {
        padding: 40px 0;
        height: auto;
    }
    .brands__bg {
        display: none;
    }
    .brands__items {
        left: 0;
        right: 0;
        top: 0;
        padding: 0;
        margin: 0;
        height: auto;
        width: auto;
    }
    .brands__items::after {
        clear: both;
        display: block;
        content: '';
        height: 0;
        overflow: hidden;
    }
    .brands__item {
        width: 33.33%;
        box-sizing: border-box;
        text-align: center;
        height: 60px;
    }
    .brands__pic {
        display: block;
        margin: 4px auto;
        height: 52px;
    }

    .markets {
        background-size: auto 768px;
        background-position: left -90px bottom 0;
        box-sizing: border-box;
        height: auto;
        padding: 0 0 828px;
    }
    .markets::before {
        display: none;
    }
    .markets__block,
    .markets__title,
    .markets__text {
        position: relative;
        width: auto;
        height: auto;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        margin: 0 25px;
        padding: 0;
    }
    .markets__title {
        margin-bottom: 24px;
    }

    .our-values__items {
        display: block;
        padding: 0;
    }
    .our-values__item {
        float: left;
        box-sizing: border-box;
        padding: 0 20px;
        margin: 0 0 45px;
        width: 50%;
    }
    .our-values__item:nth-child(3) {
        clear: both;
        float: none;
        margin: 0 auto;
    }
    .our-values__pic {
        margin: 0 auto 20px;
    }

    .history {
        height: auto;
    }
    .history__item {
        display: flex;
        flex-flow: column;
        align-items: center;
    }
    .history__item::after {
        left: calc(50% - 25px);
    }
    .history__left {
        width: 100%;
        height: auto;
    }
    .history__photo {
        width: 100%;
        height: auto;
    }

    .history__right {
        width: 100%;
        height: auto;
        margin: 0 0 60px;
        order: -1;
    }
    .history__text {
        font-size: 38px;
        line-height: 62px;
        margin: 0;
        padding: 0;
    }
    .history__years-wrap {
        width: 748px;
        left: calc(50% - 424px);
    }

    .history-today {
        background: none;
        height: auto;
    }
    .history-today::before {
        display: none;
    }
    .history-today::after {
        position: relative;
        display: block;
        content: '';
        width: 100%;
        height: 500px;
        background: url('../images/bg-today.jpeg') 0 0 no-repeat;
        background-size: cover;
    }
    .history-today__text {
        position: relative;
        width: auto;
        height: auto;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        margin: 0 25px 60px;
        padding: 0;
        font-size: 38px;
        line-height: 62px;
    }
    .history-today__text br {
        display: none;
    }
}

@media only screen and (max-width: 640px) {
    .header__top {
        margin: 0 auto;
        width: 520px;
    }
    .header__logo {
        left: 0;
        right: 0;
        margin: 0 auto;
        width: 520px;
    }
    .header__logo-img {
        position: absolute;
    }
}

@media only screen and (max-width: 560px) {
    .page__markets {
        margin: 0 auto 90px;
    }
    .page__our-values {
        margin: 0 45px 40px;
    }
    .page__history {
        margin: 0 30px 70px;
    }
    .page__history-today {
        margin: 0 auto 90px;
    }
    .page__contacts {
        margin: 0 30px 40px;
    }
    .page__footer {
        margin: 0 30px;
    }

    .header {
        background: url(../images/bg-city-mobile.png) 50% 0 no-repeat;
        background-size: auto 460px;
        height: 460px;
    }
    .header__bg {
        width: auto;
        margin: 0;
        right: -90px;
    }
    .header__bg::before {
        top: -450px;
        -moz-transform: rotate(-30deg);
        -ms-transform: rotate(-30deg);
        -webkit-transform: rotate(-30deg);
        -o-transform: rotate(-30deg);
        transform: rotate(-30deg);
    }
    .header__logo {
        position: absolute;
        height: auto;
        width: auto;
        margin: 0 0 0 30px;
        padding: 0;
        bottom: 100px;
        top: auto;
    }
    .header__logo-img {
        position: relative;
        width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
        top: auto;
        bottom: auto;
        left: auto;
        right: auto;
    }
    .header__logo-text {
        position: relative;
        box-sizing: border-box;
        width: 100%;
        height: auto;
        margin: -20px 0 0;
        padding: 0 70px 0 40px;
        top: auto;
        bottom: auto;
        left: auto;
        right: auto;
        text-align: center;
    }
    .header__map {
        top: 400px;
        left: -20px;
        right: 0;
        width: 60px;
        margin: 0 auto;
        padding-right: 0;
        white-space: nowrap;
    }
    .header__top {
        margin: 0;
        width: auto;
    }
    .header__menu {
        display: none;
    }
    .header__menu_active {
        display: block;
        background: linear-gradient(90deg, #000000 0%, rgba(0, 0, 0, 0.6) 100%);
        box-sizing: border-box;
        top: 0;
        width: 100%;
        height: 460px;
        padding: 104px 30px 0;
        z-index: 10;
    }
    .header__menu-item {
        display: block;
        color: rgba(255, 255, 255, 1);
        padding: 0;
        margin: 0 0 28px;
    }
    .header__menu-mobile {
        position: relative;
        left: 30px;
        top: 22px;
        box-sizing: border-box;
        border-top: 2px solid #fff;
        border-bottom: 2px solid #fff;
        display: block;
        width: 24px;
        height: 24px;
        overflow: hidden;
        cursor: pointer;
    }
    .header__menu-mobile::before,
    .header__menu-mobile::after {
        position: absolute;
        display: block;
        content: '';
        top: 9px;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: #ffffff;
        overflow: hidden;
        transition: background-color 400ms, transform 400ms;
    }
    .header__menu-mobile_active {
        border: none;
        z-index: 20;
        top: 26px
    }
    .header__menu-mobile_active::before {
        background-color: #ffaa00;
        -moz-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
        -webkit-transform: rotate(45deg);
        -o-transform: rotate(45deg);
        transform: rotate(45deg);
    }
    .header__menu-mobile_active::after {
        background-color: #ffaa00;
        -moz-transform: rotate(-45deg);
        -ms-transform: rotate(-45deg);
        -webkit-transform: rotate(-45deg);
        -o-transform: rotate(-45deg);
        transform: rotate(-45deg);
    }

    .brands {
        padding: 30px 0;
    }

    .markets {
        background-size: auto 560px;
        background-position: left -60px bottom 0;
        padding: 0 0 610px;
    }
    .markets__title {
        font-size: 40px;
        line-height: 64px;
    }
    .markets__text {
        margin: 0 10px;
    }

    .our-values__title {
        font-size: 40px;
        line-height: 64px;
        margin-bottom: 50px;
    }
    .our-values__item,
    .our-values__item:nth-child(3) {
        clear: both;
        float: none;
        padding: 0 20px;
        margin: 0 0 30px;
        width: 100%;
    }

    .history__right {
        margin: 0 0 50px;
        padding: 0;
    }
    .history__text {
        font-size: 26px;
        line-height: 42px;
        max-width: 360px;
        padding: 0 20px;
    }
    .history__years-wrap {
        left: calc(50% - 280px);
        gap: 24px;
    }
    .history__year {
        width: 38px;
        height: 30px;
        line-height: 20px;
        font-size: 16px;
    }
    .history__year_active {
        width: 45px;
        height: 36px;
        font-size: 20px;
        line-height: 26px;
    }

    .history-today::after {
        height: 250px;
        background: url('../images/bg-today.jpeg') 50% 50% no-repeat;
        background-size: cover;
    }
    .history-today__text {
        font-size: 38px;
        line-height: 61px;
        margin: 0 20px 50px;
    }

    .contacts__item {
        clear: both;
        float: none;
        width: auto;
    }
    .contacts__title {
        font-size: 40px;
        line-height: 64px;
        margin: 0 0 50px;
    }

    .contact {
        padding: 0 0 50px;
    }
}

@media only screen and (max-width: 450px) {
    .header__logo-text {
        padding: 0 60px 0 30px;
    }
    .footer {
        height: auto;
        padding: 90px 0 40px;
    }
    .footer__copyright {
        padding: 0;
    }
    .footer__button-up {
        left: 0;
        top: 0;
    }
}

@media only screen and (max-width: 375px) {
    .page__brands {
        margin-bottom: 40px;
    }

    .header__bg {
        right: -110px;
    }
    .header__logo-text {
        padding: 0 25px 0 0;
    }

    .brands__item {
        width: 50%;
        box-sizing: border-box;
        text-align: center;
        height: 60px;
    }

    .markets {
        background-size: auto 375px;
        background-position: left -40px bottom 0;
        padding: 0 0 425px;
    }
}