@media (max-width: 1640px){
	.popularity__right{
		background-color: #fff;
		padding-left: 15px;
		padding-right: 0;
	}
	.history__form {
		margin-left: 0;
	}
	.history__wrapper{
		background-size: 50%;
	}
}
@media (max-width: 1400px){
	.popularity__wrapper{
		background-size: 750px;
	}
}
@media (max-width: 1230px){
	.popularity{
		position: relative;
		padding-top: 50px;
	}
	.popularity__wrapper{
		background-image: none;
	}
	.popularity__inner{
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}
	.popularity__right{
		padding-left: 0;
		max-width: 800px;
		order: 0;
	}
	.mobile-bg {
		display: block;
		background-image: url(../images/popularity.jpg);
		background-repeat: no-repeat;
		min-height: 645px;
		background-size: cover;
	}

	.popularity__box{
		order: 1;
		max-width: 600px;
		position: absolute;
		z-index: 5;
		bottom: -110px;
	}
	.popularity__box-text{
		margin-right: 0;
	}
	.history{
		background-color: #f6f9f3;
		padding-top: 260px; 
	}
	.history__wrapper{
		background-image: none;
		min-height: 0;
	}
	.history__title{
		text-align: center;
		padding: 0 15px;
		max-width: 100%;
	}
	.history__text{
		max-width: 100%;    
		padding: 40px 45px 60px 30px;
	}
	.history__form {
		max-width: 100%;
		background-color: #fff;
		padding-top: 30px;
		padding-right: 50%;
		padding-left: 45px;
		padding-bottom: 200px;
	}
	.history__form::after{
		content: '';
		width: 355px;
		height: 420px;
		background-image: url(../images/alonso.jpg);
		position: absolute;
		right: 22px;
		background-size: cover;
		top: -25px;
	}
	.history .container{
		padding-left: 0;
		padding-right: 0;
	}
}
@media (max-width: 1120px) {
	.advantages__inner{
		flex-wrap: wrap;
	}
	.advantages__item{
		width: 50%;
		padding-right: 70px;
	}
	
}

@media (max-width: 1040px) {
	.top__inner-img {
		margin-left: 0;
	}

}
@media (max-width: 1000px){
	.advantages {
		margin-bottom: 130px;
	}
	.list__inner{
		display: block;
	}
	.list__title {
		max-width: 100%;
		text-align: center;
		font-size: 30px;
		line-height: 40px;
		padding: 0 200px;
	}
	.tabs__reviews-link {
		left: calc(50% - 63px);
	}
	.tabs {
		width: auto;
		padding-right: 20px;
		margin-left: 45px;
		margin-right: 50px;
	}	
	.tabs__content{ 
		max-width: 500px;
		margin: 0 auto;
	}
	.tabs__reviews{
		left: 0;
		right: 0;
		margin: 0 auto;
	}
	.tabs__content::before,
	.tabs__content::after{
		content: '';
		position: absolute;
		height: 100%;
		width: 100%;
		background-color: #a4c58c;
	}
	.tabs__content::before{
		right: 100%;
	}
	.tabs__content::after{
		left: 100%;
		z-index: 1;
	}
	.list__inner {
		padding-bottom: 20px;
    }
	.list__link{
		justify-content: center;
	}
	.list__link a{
		margin-top: 20px;
		min-width: 415px;
		padding: 22px 36px 22px 90px;
	}
	.list__link a::after{
		right: 57px;
	}
	.tabs__reviews::before,
	.tabs__reviews::after{
		content: '';
		position: absolute;
		width: 100%;
		height: 20px;
		right: 100%;
		bottom: -20px;
		background-color: #fff;
		z-index: 2;
	}
	.tabs__reviews::before{
		right: 100%;
	}
	.tabs__reviews::after{
		left: 100%;
	}

}

@media (max-width: 940px){
	.advantages__inner{
		padding-top: 100px;
	}
	.top__inner-form{
		position: absolute;
		right: 15px;
		display: flex;
		flex-direction: column;
		align-items: flex-end;
	}
	.top__inner-suptitle, .top__inner-title, .top__inner-text {
		width: 280px;
		margin-right: 100px;	
	}
	.top__inner-title {
		font-size: 50px;

	}
	.top__inner-text {
		font-size: 16px;
	}
}

@media (max-width: 768px) {
	.advantages__inner{
		padding-top: 10px;
		padding-left: 80px;
		padding-right: 50px;
	}
	.advantages__item{
		padding-right: 60px;
	}
	.header__text {
		font-size: 14px;
	}
	.top__inner-suptitle{
		margin-top: 25px;
	}
	.top__inner-text {
		margin-bottom: 50px;
	}
	.list__title {
		padding: 0 150px;
		margin-bottom: 25px;
	}
	.popularity__box{
		order: 1;
		max-width: 600px;
		position: absolute;
		z-index: 5;
		bottom:  -20px;
	}
	.popularity__right{
		max-width: 540px;
	}
	.popularity__right-title{
		text-align: center;
		font-size: 30px;
		line-height: 40px;
	}
	.popularity__right-subtitle{
		text-align: center;
	}
	.popularity__right-list li{
		margin-bottom: 25px;
	}
	.history {
		padding-top: 220px;
	}
	.history__title{
		font-size: 30px;
		line-height: 40px;
		max-width: 460px;
		margin: 0 auto;
	}
	.history__text {
		padding: 25px 45px 60px 30px;
	}
	.history__form{
		padding-right: 57%;
	}

}

@media (max-width: 760px) {
	.top__inner-img img{
		width: 200px;
	}
	.advantages__inner {
		padding-top: 180px;
		padding-left: 0;
		padding-right: 0;
	}
	.advantages__item{
		padding-right: 30px;
	}
	.advantages{
		margin-bottom: 50px;
	}
}

@media (max-width: 700px) {
	.header__text {
		display: none;
	}
	.list__title {
		padding: 0 100px;
	}
	.history__form{
		padding-right:45px;
		padding-top: 400px;
		padding-bottom: 50px;
	}
	.history__form::after{
		left: 0;
		right: 0;
		top: 0;
		width: 100%;
		height: 385px;
	}
}

@media (max-width: 640px) {
	.list__title {
		font-size: 24px;
		line-height: 30px;
		padding: 0 100px;
	}
	.advantages__inner {
		padding-top: 50px;;
	}
	.top__wrapper {
		margin-top: -540px;
	}
	.top__inner-form{
		left: 15px;
		position: static;
		align-items: center;
		text-align: center; 
	}
	.top__inner-img img{
		width: 150px;
	}
	.mobile__link-btn{
		display: block;
		width: 100%;
		text-align: center;
		padding: 22px 15px 22px 15px;
	}
	.top-form, .top__inner-text{
		display: none;
	}
	.top__inner-suptitle, .top__inner-title, .top__inner-text{
		width: 100%;
		margin-right: 0;
	}
	.top__inner {
		flex-direction: column;
		align-items: center;
	}
	.top__inner-img {
    order: 1;
	}
	.popularity__box-link{
		max-width: 600px;
		padding: 22px 10px;
		text-align: center;
		width: 100%;
		position: static;
		display: block;
	}
	.popularity__box-link::after{
		display: none;
	}
}
@media (max-width: 600px) {
	.tabs {
		padding-right: 0;
		margin-left: 0;
		margin-right: 0;
	}	.advantages__item{
		width: 100%;
	}
	.tabs__box{
		flex-direction: column;
	}
	.tabs__box .tab{
		width: 100%;
	}
	.tabs__box .tab:first-child, .tabs__box .tab:nth-child(3) {
		border-right: none;
		padding-right: 0;
	}
	.tabs__box .tab:last-child, .tabs__box .tab:nth-child(2) {
		padding-left: 0;
	}
	.tab-order-0{
		order: 0;
	}
	.tab-order-1{
		order: 2;
	}
	.tab-order-2{
		order: 1;
	}
	.tab-order-3{
		order: 3;
	}
}

@media (max-width: 530px){

	.tabs__content{
		height: 153px;
		background-image: none;
	}
	.tabs__content::before,
	.tabs__content::after{
		display: none;
	}
	.tab-order-3{
		border-bottom: none;
	}
	.tabs_reviews{
		position: static;
		margin: 0;
	}
	.tab.active::after{
		display: none;
	}
	.tab{
		font-size: 12px;
		padding: 24px 0;
	}
	.tabs__box .tab{
		font-size: 14px;
	}
	.tabs__reviews-text{
		font-size: 14px;
	}
	.tabs__reviews {
		padding: 0;
	}
	.tabs__reviews-text{
		margin-left: 0;
	}
	.tabs__content{
		min-width: 100%;
	}
}

@media (max-width: 500px) {
	.top__inner-img img{
		width: 85px;
	}
	.advantages__inner{
		padding-top: 150px;
	}
	.advantages__item{
		margin-bottom: 40px;
	}
	.advantages__item::before{
		display: none;
	}
	.list__title {
		padding: 0 50px;
	}
	.advantages {
    margin-bottom: 10px;
	}
}

@media (max-width: 480px) {
	.header__phone {
		font-size: 14px;
	}
	.header__phone a::before{
		display: none;
	}
	.header__phone-text{
		display: none;
	}
	.header__logo img{
		max-width: 115px;
	}
	.list__title {
		padding: 0 25px;
	}
	.popularity__right-title{
		font-style: 24px;
		line-height: 30px;
	}
	.popularity__right-subtitle{
		font-size: 12px;
	}
	.popularity__right-list{
		font-size: 14px;
	}
	.mobile-bg{
		min-height: 245px;
	}
	.popularity__box{
		bottom: -220px;
		padding: 0;

	}
	.popularity__right-list li {
		margin-bottom: 15px;
	}
	.popularity__wrapper{
		min-height: 0;
	}
	.popularity__box-text{
		text-align: center;
		border: none;
	}
	.history__title{
		padding-top: 70px;
	}
	.history__form{
		padding-left: 10px;
		padding-right: 10px;
	}
	.history__title{
		font-size: 20px;
		line-height: 26px;
	}
	.history__text{
		font-size: 14px;
	}
}

@media (max-width: 360px){
	.list__title {
		padding: 0 10px;
	}
	.top__images{
		min-height: 375px;
	}
	.top__inner-title {
		font-size: 30px;
		line-height: 36px;
		padding: 0 15px;
		margin-bottom: 15px;
	}
	.top__inner-suptitle {
		font-size: 12px;
		margin-bottom: 10px;
	}
	.top__wrapper {
    margin-top: -365px;
	}
	.advantages__inner{
		padding-top: 100px;
	}
	.tabs__reviews-inner{
		padding: 30px 20px;
	}
	.tab-item{
		display: none;
	}
	.tab-item:first-child{
		display: none;
	}
	.container{
		padding-left: 10px;
		padding-right: 10px;
	}
	.list__link a{
		margin-top: 0;
		padding: 22px 10px;
		text-align: center;
	}
	.list__link a::after{
		display: none;
	}
	.history__form{
		text-align: center;
	}
	.history__form-title{
		padding-right: 0;
	}
	.history__form input {
		text-align: center;
	}
	.form_btn { 
		padding: 22px 5px;
	}
	.form_btn::after{
		display: none;
	}
}
@media (max-width: 340px){
	.advantages__inner{
		padding-top: 60px;
	}
}