@media screen and (min-width: 2000px) {
  	.container {
  		width: 1300px;
  		padding: 0 30px;
  	}
  	.main__image {
  		top: -40em;
        right: -20%;
  	}
  	.main .container {
  		max-width: 1300px;
  	}
  	header .container,
  	footer .container {
  		max-width: 1300px;
  	}
  	.advantages__background-image-right{
  		top: 20%;
  		right: -30%;
  		width: 2000px;
  		height: 1600px;
  	}
  	.advantages__background-image-left{
  		top: 40%;
  		left: -20%;
  	}
  	.form-section__background-image-right{
  		bottom: 0;
  		right: -10%;
  	}
  	.advantages__background-image-left-list{
  		left: -25%;
  		top: 26%;
  	}
  	.list__text{
  		margin: 15px;
  	}
  	.slide-section__background-image-left{
  		top: 55%;
  	}
    .advantages__background-image-left-bottom{
        left: -15%;
    }
  }

  

  @media screen and (max-width: 1200px) {
  	.main .container {
  		width: 100%;
  		margin: 0;
  		padding: 0 20px;
  	}
  	.container {
  		width: 100%;
  		padding: 0 20px;
  		margin: 0;
  	}
  	.main__image {
  		top: -40em;
        right: -4.5%;
        width: 50%;
    }
    .advantages__background-image-right{
        top: 18%;
        right: -30%;
    }
    .advantages__background-image-left{
        top: 35%;
        left: -50%;
    }
    .form-section__background-image-right{
        top: -40%;
        right: -40%;
    }
    .advantages__background-image-left-list{
        left: -71%;
        top: 27%;
    }
    .slide-section__background-image-left{
        left: -30%;
    }
    .advantages__background-image-left-bottom{
        left: -30%;
        top: 30%;
    }
    .main__content {
        max-width: 75%;
    }
    .slide {
        flex: 0 0 100%;
    }
    .slider-track {
        gap: 0;
    }
    .slide__text{
        grid-template-columns: 2.5fr 0.2fr;
    }
    .contact__button-bottom{
        max-width: 200px;
    }
    .container-row {
        grid-template-columns: 4fr 0.9fr;
    }
}
@media screen and (max-width: 930px) {
    .capcha {
        flex-direction: column;
    }
    .container-row {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .contact-container {
        justify-content: flex-start;
        padding-top: 20px
    }
    .main{
        margin-top: 40px;
    }
    .container {
        width: 100%;
        padding: 20px;
        box-sizing: border-box;
    }
    .navigation{
        display: none;
    }
    .navigation-mobile{
        display: block;
    }
    .nav ul{
        place-items: center;
        text-align: center;
    }
    .nav ul li{
        border-bottom: 2px solid #fff;
        padding: 20px 0;
        width: 80%
    }
    .main__image {
        top: -40em;
        right: 7.5%;
        width: 50%;
    }
    .main__text{
        width: 80%;
    }
    .main__content {
        max-width: 80%;
    }
    .main__content h1 {
        font-size: 2.6em;
    }
    .list__text{
        margin: 0 20px;
    }
    .advantages__wrapper{
        grid-template-columns: repeat(2, 1fr);
    }
    .form-container{
        margin: 0;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .custom-checkbox::after{
        width: 33px;
        height: 33px;
    }
    .advantages__background-image-right{
        top: 20%;
        left: 30%;
        width: 200%;
    }
    .advantages__background-image-left-bottom{
        left: -50%;
        top: 30%;
        width: 140%;
    }
    .advantages__background-image-left-list {
        left: -78%;
        top: 27%;
        width: 120%;
    }
    .slide-section__background-image-left {
        left: -55%;
        width: 150%;
    }
    .custom-slider {
        width: 100%;
    }
    .slide {
        flex: 0 0 100%;
    }
    .form-section__background-image-right {
        width: 120%;
        top: -45%;
        right: -70%;
    }
    .form-section{
        padding: 0;
    }
    .advantages__background-image-left {
        top: 40%;
        left: -65%;
        width: 140%;
    }
    .services__wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 15px;
        align-items: stretch;
    }
    .services__item:nth-child(4n+3),
    .services__item:nth-child(4n) {
        grid-column: span 1; 
grid-row: span 1;
    }
    .services__item:nth-child(5) {
        display: block; 
    }
    .main__title{
        width: 90%;
    }
    .main, .advantages, .stages-section, .list, .slide-section {
        margin-bottom: 100px;
    }
    .advantages h2, .services h2, .form-title, .list h2, .stages-section h2 {
        font-size: 2.6em;
    }
.services__item:nth-child(4n) .services__text.with-link {
	flex-direction: column;
}
.toggle-btn {
	margin-top: -300px;
}
}

@media screen and (max-width: 640px) {
    .container-row{
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        align-items: center;
        gap: 30px;
        place-items: center;
    }
    .footer {
        text-align: center; 
    }
    .contact__button-bottom{
        max-width: 200px;
    }
    .navigation-footer ul {
        flex-direction: column;
        align-items: left;
        gap: 10px;
    }
   .container {
        width: 100%;
        padding: 0 20px;
    }
    .contact__button{
        display: none;
    }
    .nav ul{
        margin: 40% 0;
    }
    .main__title{
        width: 100%;
        font-size: 2em;
        margin-bottom: 15px;
    }
    .main__text{
        width: 100%;
    }
    .main__subtitle ul, .main__subtitle.subtitle_two ul{
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .main__content{
        max-width: 100%;
    }
    .slide__header, .slide__text{
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        place-items: center;
        text-align: center;
    }
    .slide {
        flex: 0 0 100%;
        align-items: center;
    }
    .main__subtitle ul a {
        padding: 30px 20px;
    }
    .main__text ul li {
        font-size: 1.1em;
    }
    .main__subtitle ul li{
        padding: 20px;
    }
    .advantages, .form-section{
        width: 100%;
    }
    .advantages__background-image-right {
        top: 18%;
        left: -10%;
        width: 180%;
    }
    .advantages__background-image-left {
        top: 39%;
        left: -60%;
    }
    .advantages__title{
        font-size: 1.5em;
    }
    .advantages h2, .services h2, .form-title, .list h2, .stages-section h2{
        font-size: 2em;
    }
    .services__item .services__text ul li{
        font-size: 1.1em;
    }
    .slide__title{
         font-size: 1.3em;
    }
    .list__title{
        font-size: 1.1em;
        width: 80%;
    }
    .services__item.with-link ul, .stages-section__wrapper{
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .advantages__wrapper, .advantages__wrapper-four {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .services__wrapper{
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .stages-section__item:nth-child(2), .stages-section__item:nth-child(3){
        grid-column: span 1;
    }
    .stages-section__item:nth-child(3){
        background-color: #FFF;
        color: #003BAB;
    }
    .stages-section__item:nth-child(4){
        background-color: #003BAB;
        color: #fff;
    }
    .stages-section__item:nth-child(4) .stages-section__title{
        color: #fff;
    }
    .stages-section__item:nth-child(3) .stages-section__title{
        color: #003BAB;
    }
    .stages-section__item:nth-child(3) .stages-section__number{
        background-color: rgba(0, 59, 171, 0.3);
    }
    .stages-section__item:nth-child(4) .stages-section__number{
        background-color: rgba(255, 255, 255, 0.3);
    }
    .toggle-btn{
        left: 0;
        margin: -15% auto;
    }
    .form-container{
        padding: 15%;
        margin: 10px 0;
    }
    .form-section{
        padding: 20px 0;
    }
    .main, .advantages, .stages-section {
        margin-bottom: 100px;
    }
    .form-subtitle {
        margin-bottom: 0px;
        text-align: center;
        font-size: 1.1em;
        width: 80%;
    }
    .form-section__background-image-right {
        /*width: 180%;
        top: -55%;
        right: -100%;*/
        display: none;
    }
    .list__text ul li {
        font-size: 0.9em;
        margin-bottom: 15px;
    }
    .advantages__background-image-left-bottom{
        left: -40%;
        top: 28%;
        width: 140%;
    }
    .form-container{
        padding: 10%;
    }
    .form-title{
        text-align: center;
    }
    .form-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .services__title{
        font-size: 1.8em;
    }
    .advantages__background-image-left-list {
        left: -58%;
        top: 28.5%;
        width: 120%;
    }
    .list h2 span{
        color: #fff;
    }
    .slide-section__background-image-left {
        left: -85%;
        width: 200%;
    }
    .main__image {
        display: none;
    }
.toggle-btn {
	margin-top: -310px;
}
}

@media screen and (max-width: 400px) {
    .advantages__background-image-left {
        top: 39%;
    }
    .services__item.with-link h3{
        grid-template-columns: 1fr 0.1fr;  
    }
    .services__item {
        width: 100%;
    }
    .services__item h3 {
        font-size: 1.5em;
    }
    .advantages__background-image-left-bottom{
        top: 30%;
    }
    .slide {
        flex: 0 0 100%;
    }
    .stages-section__item{
        width: 100%;
    }
    .stages-section__title{
         font-size: 1.5em;
    }
    .slide__title{
        font-size: 1.2em;
    }
    .list h2 span{
        color: #fff;
    }
    .advantages__background-image-left-list {
        left: -56%;
        top: 29%;
        width: 120%;
    }
    .advantages__background-image-right {
        top: 18%;
        left: -5%;
    }
}


