body {
  text-align: center;
  margin: 0
}

.main-block {
  position:absolute;
  overflow:hidden; 
  left:230px; 
  top:150px; 
  width:950px; 
  height:270px
}

.cards {
  position: absolute;
  top: 460px;
  left: 230px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 950px;
}
.main.cards{
  align-items: center;
}
.main-card {
  overflow:hidden; 
  width:200px; 
  height:350px;
  font-family: Arial;=
}
.main-card a {
  color: #000;
}

.footer {
  position:absolute; 
  left:420px; 
  top:830px; 
  width:500px; 
  height:30px; 
  z-index:9;
}

.card-title {
  margin-top: 15px;
  margin-bottom: 30px;
  font-size: x-large;
  font-weight: bold;
}
.card-text {
  font-size: medium;
  line-height: 1.5;
}
.card-btn {
  float: center;
}
.menu-name{
  display: none;
}
.header-mob {
  position: fixed;
  top: 0;
  background-color: Ivory;
  width: 100%;
  font-family: Arial, Helvetica, sans-serif;
}
.footer{
  color: darkgreen;
  font-family: Verdana;
}
.main-block{
  height: auto;
  min-height: 270px;
}
.main.main-block{
  min-height: 0;
}
.main-block #image2 {
  position: relative;
  z-index: 1;
}
.main-block .text{
  position: relative;
  padding: 30px;
  z-index: 9;
  font-family: Verdana;
}
.text-main{
  text-align: center;
  margin: 0 auto;
}
.text-sec{
  text-align: right;
  margin-top: 40px;
  padding-right: 30px;
}
.menu{
  position: fixed;
  top: 130px;
  z-index: 999;
  background-color: yellowgreen;
  width: 150px;
  height: auto;
  padding: 20px 20px;
  font-size: 18px;
  font-family: Arial;
  text-transform: uppercase;
  left: -200px;
  transition: .5s;
}
.menu.open{
  left: 0
}
.menu a{
  display: block;
  margin-bottom: 15px;
  color: #000;
}
.diva.cards{
  margin-bottom: 30px;
}

@media screen and (max-width: 1200px) {
  .main-block{
    width: 800px;
  }
  .cards {
    width: 800px;
  }
  .main-card {
    width: 170px;
    height: 400px;
  }
  .footer{
    top: 880px;
  }
}
@media screen and (max-width: 1080px) {
  .main-block {
    width: 600px;
  }
  .cards {
    width: 600px;
    flex-wrap: wrap
  }
  .main-card{
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    height: 170px;
  }
  .main-card a{
    display: flex;
    padding: 10px 0;
  }
  .card-title{
    margin-bottom: 20px;
  }
  .card-text{
    max-width: 300px;
  }
  .diva.cards{
    flex-flow: row;
  }
  
  .text {
    text-align: left;
    margin-left: 20px;
  }
  .footer{
    top: 1260px;
    left: 30px;
  }
  #top{
    display: none;
  }
  #top2{
    position: fixed;
    height: 170px !important;
    width: 170px !important;
    top: 10px !important;
    z-index: 99 !important;
    opacity: 1 !important;
    left: auto !important;
    right: 30px;
  }
  .header-mob{
    position: fixed;
    z-index: 90;
    background-color: ivory
  }
  .header-menu{
    padding: 10px 0;
    background-color: yellowgreen
  }
  .header-top{
    padding-top: 20px;
    padding-left: 40px;
    color: DarkGreen;
    display: flex;
    font-weight: bold;
    text-align: left;
    z-index: 98;
    background-color: ivory;
    padding-bottom: 40px;
  }
  .header-text:first-child{
    margin-right: 40px;
  }
  .header-text:first-child{
    font-family: Gungsuh;
    font-size: 24px;
    margin-bottom: 15px;
  }
  .header-text:last-child{
    font-size: 24px;
  }
  .main-block{
    left: 50px;
    top: 190px;
  }
  .cards{
    left: 50px;
    top: 500px;
  }
}

@media screen and (max-width: 780px) {
  .header-top{
    padding-bottom: 20px;
  }
  .menu{
    top: 110px;
  }
  #top2{
    margin: 0 auto;
    margin-top: 150px ;
    position: unset !important;
    z-index: 10 !important;
  }
  .main-block{
    width: 90%;
    left: 30px;
    top: 350px;
    height: 200px;
  }
  .main-block img {
    height: 200px !important;
  }
  .cards{
    position: unset;
    margin-left: 30px;
    margin-top: 250px;
    width: 90%;
  }
  .main-card{
    height: auto;
  }
  .main-card img {
    width: 170px;
    height: auto;
    max-height: 150px;
  }
  .footer{
    position: unset;
    margin: 0 auto;
    margin-bottom: 30px;
    max-width: 400px;
  }
}
@media screen and (max-width: 640px) {
  .diva.cards img{
    width: 100px;
    height: auto;
  }
}
@media screen and (max-width: 480px) {
  #top2{
    flex-flow: column !important;
    margin: 0 auto;
    margin-top: 170px;
  }
  .header-top{
    flex-flow: column;
  }
  .main-block{
    left: 20px;
    top: 360px;
    min-height: 150px;
  }
  .cards{
    margin-left: 20px;
  }
  .main-card a{
    flex-flow: column;
    align-items: center;
  }
  .diva.cards {
    flex-flow: column-reverse
  }
  .text{
    margin-left: 0;
    text-align: center;
  }
  .footer{
    max-width: 300px;
    height: auto;
  }
  .diva.main-block img{
    display: none;
  }
  .main.main-block img {
    display: block;
  }
}
