#hero-block {
  position: absolute;
  transform: translateX(0%);
  transition: all 1.35s cubic-bezier(0.82, 0.005, 0.29, 1) 0.75s;
  z-index: 1;
}
#hero-image {
  height: 50vh;
  position: absolute;
  transform: scale(1);
  transition: transform 2.5s cubic-bezier(0.21, 0, 0.18, 1);
  width: 100vw;
  top: 40vh;
  background-image: url('../img/hero_offert.jpg');
  background-size: cover;
  background-position: center center;
}
.animation {
  display: inline-block;
  animation: fadeIn 1.5s forwards;
  opacity: 0;
  transition-timing-function: cubic-bezier(0.785, 0.135, 0.15, 0.86);
}
.shrink {
  animation-name: shrink;
  -webkit-animation-name: shrink;
  animation-duration: 1s;
  -webkit-animation-duration: 1s;
  animation-iteration-count: 1;
  animation-timing-function: ease-in;
  -webkit-animation-timing-function: ease-in;
  visibility: visible !important;
  animation-fill-mode: forwards;
  -webkit-animation-fill-mode: forwards;
}
@keyframes shrink {
  from {
    transform: scale(1.2);
  }
  to {
    transform: scale(1);
  }
}
@-webkit-keyframes shrink {
  from {
    transform: scale(1.2);
  }
  to {
    transform: scale(1);
  }
}
.hero-text{
  text-align: center;
  position: absolute;
  width: 100%;
  top: 30%;
}
.hero-text span{
  display: block;
}
.hero-text img  {
  width: 70px;
  margin: 15px;
}

.text1{
  color: rgb(0, 0, 0);
  font-size: 30px;
  font-family: 'Cormorant SC', serif;
  letter-spacing: 1px;
  margin-bottom: 20px;
  background: rgb(255, 255, 255);
  position: relative;
  animation: text 2.5s 1;
}
.text2{
  font-family: 'Cormorant SC', serif;
  font-size: 20px;
  color: rgb(0, 0, 0);
}
@keyframes text {
  0%{
    color: rgb(255, 255, 255);
    margin-bottom: -40px;
  }
  30%{
    letter-spacing: 5px;
    margin-bottom: -40px;
  }
}
.hero-text {
  position: absolute;
  top: 2vh;
  width: 90vw;
  height: 80vh;
  display: flex;
  justify-content: center;
  border: 1px solid  #e8c7a6;
  left: 2vh;
  z-index: 3;
}
.hero-text .box {
  width: 60vw;
  height: 20vh;
  position: relative;
  display: flex;
  justify-content: center;
  flex-direction: column;
  top: 15vh;
}
.hero-text .box .title {
width: 100%;
position: relative;
display: flex;
align-items: center;
justify-content: center;
height: 50px;
}
.hero-text .box .title .block {
width: 0%;
height: 1px;
background: #fae3a8;
position: absolute;
animation: mainBlock 1.5s cubic-bezier(0.74, 0.06, 0.4, 0.92) forwards;
display: flex;
}
.hero-text .box .title h1 {
color: rgb(0, 0, 0);
font-size: 35px;
-webkit-animation: mainFadeIn 2s forwards;
-o-animation: mainFadeIn 2s forwards;
animation: mainFadeIn 2s forwards;
animation-delay: 1.3s;
opacity: 0;
display: flex;
align-items: center;
position: relative;
}

.hero-text .box .role {
width: 100%;
position: relative;
display: flex;
align-items: center;
height: 30px;
margin-top: -10px;
}

.hero-text .box .role p {
animation: secFadeIn 2s forwards;
animation-delay: 1.7s;
opacity: 0;
color: #000000;
font-size: 20px;
font-family: 'Cormorant SC', serif;
letter-spacing: 3px;
}



@keyframes mainBlock {
0% {
  width: 0%;
  left: 0;
}
50% {
  width: 95%;
  left: 0;
}
100% {
  height: 100%;
  width: 0;
  left: 100%;
}
}
@keyframes secBlock {
0% {
  width: 0%;
  left: 0;
}
50% {
  width: 100%;
  left: 0;
}
100% {
  width: 0;
  left: 100%;
}
}
@keyframes mainFadeIn {
0% {
  opacity: 0;
}
100% {
  opacity: 1;
}
}

@keyframes secFadeIn {
0% {
  opacity: 0;
}
100% {
  opacity: 1;
}
}


@media screen and (max-width: 320px) and (orientation: portrait) {
  .hero-text .box {
    top: 15vh;
  }
  .hero-text .box .title h1 {
    font-size: 25px;
  }
  .hero-text .box .role p {
    font-size: 20px;
  }
}
@media screen and (min-width: 480px) and (orientation: landscape) {
  .hero-text {
    height: 90vh;
    top: 5vh;
  }
  .hero-text .box {
    height: 270px;
    width: 50vw;
    left: -20%;
    top:20px;
  }
  .hero-text .box .title h1 {
    font-size: 25px;
  }
  .hero-text .box .role p {
    font-size: 20px;
  }
  #hero-image {
   height: 100vh;
   width: 50vw;
   top: 0;
   left: 50vw;
  }
  @keyframes mainBlock {
    0% {
      width: 0%;
      left: 0;
    }
    50% {
      width: 85%;
      left: 0;
    }
    100% {
      height: 100%;
      width: 0;
      left: 85%;
    }
  }

}

@media screen and (min-width: 768px) and (orientation: portrait) {
  #hero-image {
    height: 60vh;
    width: 90vw;
    top: 35vh;
    left: 5vw;
  }
  .hero-text {
    width: 93vw;
    height: 80vh;
    display: flex;
  }
  .hero-text .box .title {
    align-items: center;
    justify-content: center;
  }
  .hero-text .box .title h1 {
    font-size: 40px;
  }
}
@media screen and (min-width: 1024px) and (orientation: landscape) {
  #hero-image {
    height: 600px;
    top: 3vh;
    width: 58vw;
    left: 42vw;
  }
  .hero-text {
    height: 70vh;
    width: 55vw;
    top: 20vh;
  }
  .hero-text img {
    width: 100px;
    margin: 10px;
  }
  .hero-text .box {
    left: 0;
    top: 10vh;
  }
  .hero-text .box .title {
    align-items: center;
    justify-content: center;
  }
  .hero-text .box .title h1 {
    font-size: 40px;
  }
  .content-block {
    width: 65%;
    margin: 5rem 0 5rem 5rem;
  }
  .b-right {
    width: 65%;
    margin: 5rem 0 5rem 15rem;
  }

  @keyframes mainBlock {
    0% {
      width: 0%;
      left: 0;
    }
    50% {
      width: 65%;
      left: 0;
    }
    100% {
      height: 100%;
      width: 0;
      left: 65%;
    }
  }

}
@media screen and (min-width: 1112px) {
  #hero-block {
    transform: translateX(60%);
  }
  #hero-image {
    left: 40vw;
  }
  .hero-text {
    height: 32em;
    width: 45vw;
    top: 20vh;
  }
  .hero-text .box {
    top: 20%;
  }
  .hero-text .box .title {
    align-items: center;
    justify-content: center;
  }
  .content-block {
    width: 60%;
    margin: 5rem 0 5rem 10%;
  }
  .b-right {
    width: 60%;
    margin: 5rem 0 5rem 30%;
  }
  @keyframes mainBlock {
    0% {
      width: 0%;
      left: 0;
    }
    50% {
      width: 55%;
      left: 0;
    }
    100% {
      height: 100%;
      width: 0;
      left: 55%;
    }
  }

}