


@media (min-width: 1480px) {
  .main-test2{
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr; /*   8 колонок */
    grid-template-rows: 1% 0.8fr 1fr 0.8fr 0.5fr; /*  Определяем расположение в Grid */
    }  
  .testtext1 {
    margin-left: 3.5%;
  }
}
/* Ноутбуки (1200px) */
@media (min-width: 1024px) and (max-width: 1200px) {
  .testtext1{
    font-weight: 700;
    font-size: 42px;
    line-height: 58px;
    margin: 0 0 18px 0;
    margin-left: 3.5%;
  }
  .Rectangle9{
    margin-top: -0%;
  }
  .testtext3{
    grid-area: 4 / 3 / 3 / 10;
    margin-left: 0%;
    margin-top: -13%;
  }
  .photo5{
    margin-top: 20%;
    grid-area: 3 / 6 / 4 / 11; /* Задайте правильные области */
    overflow: hidden;
    place-items: center;
    align-self: center;
    margin-left: 10%;
    margin-top: 30%;
    width: 100%;
  }
  .testtext5{
    grid-area: 3 / 2 / 4 / 6;
    align-self: center;
    place-items: center;
    color: #4D4343;
    margin-left: -5%;
    margin-top: 20%;

  }
  .testtext6{
    grid-area: 3 / 2 / 4 / 6;
    justify-self: start;
    align-self: flex-end;
    place-items: center;
    margin-top: -20%;
    margin-left: 15%;
    color: #4D4343;
  }
  .testtext7{
    grid-area: 4/ 2 / 5 / 11;
    place-items: center;
    text-align: center;
    margin-top: 5%;
    color: #4D4343;
  }
  .cards-container {
    grid-area: 4 / 2 / 5 / 11;
    display: grid;
    grid-template-columns: repeat(4, minmax(200px, 1fr));
    gap: 4%;
    margin-top: 20%;
    position: relative; /* Для z-index контекста */
}
  .image-caption {
    position: absolute;
    bottom: 100px;
    left: 15%;
}
  .item2a{
    right: 80px;
  }
/*---------------------------------*/
.form-container {
    position: relative;
    grid-area: 5 / 2 / 8 / 7; /* Настройте по своей сетке */
}
.photo6{
    grid-area: 5 / 7 / 6 / 12; /
}
.form-overlay {
  top: 20%;
}
.main-test {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr; /*   8 колонок */
    grid-template-rows: 1% 1fr 1fr 1fr 1fr; /*  Определяем расположение в Grid */
    
    color: white;
}

/*-----------------------MAIN-TEST*/
.Rectangle11{
  margin-top: -15%;
  margin-left: -3%;
  width: 110%;
}
.Rectangle12{
  margin-top: -15%;
  margin-left: -3%;
  width: 115%;
}
.Rectangle13{
  margin-top: -15%;
}
  .bottomindex3{
    grid-area: 4 / 7 / 5 / 11;
    align-self: end;
    margin-bottom: 73%;
    margin-left: 5%;
}
.testtext9{
  margin-top: -35%;
}
  .car3{
    grid-area: 5 / 2 / 5 / 6;
    justify-self: end;
    align-self: center;
    margin-top: 0%;
  }
  .form-content2{
    margin-bottom: 0%;
    margin-top: -20%;
    padding: 0%;
  }
  .photo8{
    margin-top: -20%;
  }
  .container2{
    margin-bottom: 0%;
  }
  .input2{
    margin-top: 3%;
    margin-left: -12%;
    font-size: 14px;
  }
  .input1{
    margin-top: 4%;
    margin-left: 0%;
    font-size: 14px;
  }
  .input3{
    margin-top: -20%;
    font-size: 14px;
  }
  .bottom44 img{
    width: 50%;
    margin-bottom: 45%;
  }
  .bottom15{
    margin-top: 14%;
  }
  .swaper-wrapper{
    margin-top: 100%;
  }
  .testtext13{
    grid-area: 4 / 9 / 4 / 12;
  }
  .testtext12{
    margin-left: -10%;
  }
  .main-test2{
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr; /*   8 колонок */
    grid-template-rows: 1% 0.8fr 1fr 0.8fr 0.5fr; /*  Определяем расположение в Grid */
  }
}







@media (min-width: 1200px) and (max-width: 1360px){
  .testtext7 {
    grid-area: 4/ 3 / 5 / 10;
    place-items: center;
    text-align: center;
    align-self: end;
}
  .cards-container {
    grid-area: 5 / 2 / 5 / 11;
    display: grid;
    grid-template-columns: repeat(4, minmax(250px, 1fr));
    gap: 4%;
    margin-top: 10%;
    left: -7%;
    position: relative; /* Для z-index контекста */
  }
  .form-content2 {
    position: relative;
    left: -2%;
    top: -4%;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: grid;
    grid-template-columns: 55px  0.2fr 0.2fr 0.2fr 0.2fr 100px ; /* 6 колонок как в примере */
    grid-template-rows: 0.45fr 0.25fr 0.5fr 0.2fr;   
    padding: 20px;
}
  .input2{
    grid-area: 1 / 4 / 2 /7;
    font-family: 'Sarabun', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    background-color: transparent;
    border: none;
    outline: none;         
    box-shadow: none; 
    margin-top: 17%;
    margin-left: -12%;
}
  .input3{
    grid-area: 2 / 2 / 2 / 5;
    font-family: 'Sarabun', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px; 
    background-color: transparent;
    border: none;
    outline: none;         
    box-shadow: none; 
    margin-top: -9%;
    margin-left: 0%;
}

  .bottom44 {
    grid-area: 1 / 2 / 5 / 6;
    align-self: center;
    margin-top: -19%;
}
  .Rectangle8{
    grid-area: 2 / 2 / 2 / 11; /* Задайте правильные области */
    overflow: hidden;
    width: 90%;
    margin-left: -4%;
    justify-content: center;
    margin-top: 5%;
    place-items: center;
  }
  .testtext3{
    margin-top: -10%;
  }
  .Rectangle9{
    grid-area: 3 / 2 / 3 / 11; /* Задайте правильные области */
    overflow: hidden;
    place-items: center;
    margin-top: -1%;
    margin-left: -4%;
    width: 90%;
  }
  .photo5{
    margin-top: 20%;
    grid-area: 3 / 6 / 4 / 11; /* Задайте правильные области */
    overflow: hidden;
    place-items: center;
    align-self: center;
    margin-left: -0%;
    width: 80%;
   
  }
  .testtext5{
    grid-area: 3 / 2 / 4 / 6;
    align-self: center;
    place-items: center;
    color: #4D4343;
    margin-left: -15%;
    margin-top: 20%;

  }
  .testtext6{
    grid-area: 3 / 2 / 4 / 6;
    justify-self: start;
    align-self: flex-end;
    place-items: center;
    margin-top: -20%;
    color: #4D4343;
  }
  .car3{
    margin-top: 38%;
    margin-left: -15%;
  }





}