* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

html, body, .site {
  height: 100%;
}

.site {
  background-color: #DDE4F9;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  height: 100vh;
  height: -webkit-fill-available;
}

.site__arrow {
  position: absolute;
  right: 15px;
  top: calc(50% - 8px);
  transform: translateX(200%);
  opacity: 0;
  transition: all .8s ease-in-out .4s;
  will-change: transform;
}

.main {
  width: 100vw;
  background: url('./img/background.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 120%;
  overflow: hidden;
  flex-grow: 3;
}


.mainBlockHelper {
  display: flex;
  align-items: center;
  height: 100vh;
}


.main__block {
  /* margin-top: 77px; */
  margin-left: 40px;
  width: 218px;
  height: 107px;
  display: grid;
  grid-template-columns: 27px 145px;
  grid-gap: 10px;
  align-items: center;
}

@media (max-width: 1023px) {
  .main {
    width: 100vw;
    background: url('./img/background.svg');
    background-repeat: no-repeat;
    background-position-x: left;
    background-position-y: center;
    background-size: 50%;
    overflow: hidden;
    flex-grow: 3;
  }

  .mainBlockHelper {
    align-items: unset;
  }
  
  .main__block {
    margin-top: 55px;
  }
}

@media (max-width: 500px) {
  
  .main {
    width: 100vw;
    background: url('./img/background.svg');
    background-repeat: no-repeat;
    background-position-x: left;
    background-position-y: center;
    background-size: 100%;
    overflow: hidden;
    flex-grow: 3;
  }
 
}

.main__title {
  width: 145px;
  height: 49px;
  
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-size: 36px;
  line-height: 49px;  
  
  color: #FFFFFF;
  position: relative;
  display: flex;
  align-items: center;
}

.main__description {
  width: 218px;
  height: 48px;
  
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;  
  
  color: #FFFFFF;
}

.tabs__item {
  width: 100vw;
  height: 10vh;

  background-image: url('./img/dohuaBg.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;


  padding-top: 20px;

  padding-left: 20px;
  transition: height 1s ease-in-out, padding-top 1s ease-in-out;

  position: relative;
  overflow: hidden;
  display: block;
}
.tabs__item:nth-child(2) {
  background-image: url('./img/large__tab__img-2.jpg');
}
.tabs__item:nth-child(3) {
  background-image: url('./img/large__tab__img-3.jpg');
}
.tabs__item:nth-child(4) {
  background-image: url('./img/large__tab__img-4.jpg');
}
.active {
  height: 30vh;
  padding-top: 69px;
}
.active .site__arrow {
  transform: translateX(0);
  opacity: 1;
}

.tabs__item-block {
  width: 335px;
  height: 91px;

  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tabs__item-title {
  width: 335px;
  height: 33px;
  
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-size: 24px;
  line-height: 33px;  
  
  color: #FFFFFF;
  position: relative;
}

.tabs__item-description {
  width: 335px;
  height: 48px;
  
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;  
  
  color: #FFFFFF;

  opacity: 0;
  transition: opacity .5s ease-in-out .5s;
}
.active .tabs__item-description {
  opacity: 1;
}

@media (min-width: 1024px) {
  .site {
    flex-direction: row;
  }
  .main {
    width: 30vw;
    flex-grow: 3;
  }
  .tabs {
    display: flex;
    justify-content: flex-end;
    width: 65vw;
  }
  .tabs__item {
    width: 10vw;
    height: 100vh;
    display: flex;
    align-items: flex-end;
    transition: width 1s ease-in-out;
    will-change: width;
    background-size: 35vw 100vh;
  }
  .tabs__item-title {
    display: flex;
    align-items: center;
    position: relative;
  }
  .tabs__item:nth-child(3) {
    background-position: top center;
    background-repeat: no-repeat;
    background-size: 35vw 100vh;

  }
  .active {
    width: 35vw;
  }
  .active .tabs__item-description {
    opacity: 1;
  }
  .tabs__item-block {
    transform: rotate(270deg);
    transform-origin: left top;
    transition: transform 1s ease-in-out, margin-bottom 0.5s ease-in-out;
  }
  .active .tabs__item-block {
    transform: rotate(0);
    margin-bottom: 10vh;
  }
  .active:first-child .site__arrow {
    right: 15px;
  }
  .active .site__arrow {
    transform: translate(0);
    opacity: 1;
    right: 10vw;
    top: calc(50% - 8px);
  }
}