.hero{
  background-color: var(--light-gray-2);
  padding-top: 100px;
  min-height: 100vh;
  box-sizing: border-box;
}
.hero__intro{
  max-width: 170px;
  margin-left: auto;
  margin-bottom: 72px;
  color: var(--black);
  font-size: 16px;
}
.hero__header{
  margin-bottom: 32px;
}
.hero__case,
.hero__experience{
  padding: 16px;
  border-radius: var(--border-radius);
  height: 200px;
}
.hero__experience{
  background-color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero__case{
  overflow: hidden;
  position: relative;
  object-fit: cover;
  margin-bottom: 12px;
}
.hero__case-row{
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
}
.hero__case img{
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.hero__case-row>.tag{
  color: var(--white);
  border-color: var(--white);
}
.hero__case-link{
  display: block;
  width: 40px;
  height: 40px;
  box-sizing: border-box;
  padding-top: 5px;
  padding-left: 5px;
  border-radius: 50%;
  transition: all .3s ease-in-out;
  background-color: var(--black);
}
.hero__case-link:hover{
  background-color: var(--white);
  transform: rotate(45deg);
}
.hero__case-link:hover path{
  transition: all .3s ease-in-out;
  fill: var(--black)
}
.hero__btn{
  display: none;
}
@media screen and (min-width: 768px){
  .hero__intro{
    margin-bottom: 94px;
  }
  .hero__info,
  .hero__header{
    margin-left: 15%;
  }
  .hero__info,
  .hero__header>p{
    padding-left: 16px;
  }
  .hero__header>p,
  .hero__case{
    max-width: 400px;
  }
  .hero__header{
    margin-bottom: 64px;
  }
  .hero__info{
    display: flex;
  }
  .hero__case{
    margin-right: 12px;
    flex-shrink: 0;
    flex-basis: 400px;
    margin-bottom: 0;
  }
  .hero__case,
  .hero__experience{
    height: 235px;
  }
}
@media screen and (min-width: 1200px){
  .hero__wrapper{
    background-image: url(../images/portfolio/portfolio-hero.png);
    background-size: 250px auto;
    background-position: left top;
    background-repeat: no-repeat;
    position: relative;
    padding-bottom: 60px;
  }
  .hero__info,
  .hero__header{
    margin-left: 35%;
  }
  .hero__info,
  .hero__header>p{
    padding-left: 80px;
  }
  .hero__header>p,
  .hero__case{
    max-width: 470px;
  }
  .hero__case{
    flex-basis: 470px;
  }
  .hero__btn{
    display: block;
    max-width: 85px;
    text-align: right;
    font-size: 14px;
    color: var(--dark-gray-2);
    padding-right: 56px;
    position: absolute;
    left: 108px;
    bottom: 55px;
  }
  .hero__btn::after{
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background-image: url(../images/icons/arrow-down.svg);
    background-size: contain;
  }
}
@media screen and (min-width: 1500px){
  .hero__intro{
    margin-bottom: 120px;
  }
  .hero__header{
    margin-bottom: 140px;
  }
}

/* CASES */

.cases{
  padding: 60px 0 80px;
}
.cases__item{
  padding-bottom: 24px;
  box-sizing: border-box;
  border-bottom: var(--border);
}
.cases__item{
  position: relative;
  counter-increment: item;
  margin-bottom: 30px;
  height: 200px;
  overflow: hidden;
  transition: height .5s ease-in-out;
}
.cases__item.active{
  height: 570px;
}
.cases__item::before{
  content: '0' counter(item);
  font-size: 20px;
  line-height: 120%;
  font-style: normal;
  font-weight: 400;
  color: var(--black);
  display: inline-block;
  position: absolute;
  top: 4px;
  left: 0;
}
.cases__header{
  display: flex;
  justify-content: space-between;
  padding-left: 46px;
}
.cases__btn{
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: var(--border);
  position: relative;
  transition: all .3s ease-in-out;
}
.cases__btn::before,
.cases__btn::after{
  content: '';
  width: 2px;
  height: 20px;
  background-color: var(--black);
  position: absolute;
  top: 50%;
  transform: translateY(-50%) translateX(-50%);
  left: 50%;
  transition: all .3s ease-in-out;
}
.cases__btn::after{
  transform: translateY(-50%) translateX(-50%) rotate(90deg);
}
.cases__btn:hover{
  background-color: var(--black);
}
.cases__btn:hover::before,
.cases__btn:hover::after{
  background-color: var(--white);
}
.cases__btn.active::before{
  transform: translateY(-50%) translateX(-50%) rotate(90deg);
}
.tags__list{
  font-size: 0;
  margin-bottom: 16px;
}
.tags__item{
  display: inline-block;
  margin-right: 12px;
  margin-bottom: 12px;
}
.cases__img{
  max-width: 100%;
  height: 250px;
  border-radius: var(--border-radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.cases__img img{
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.cases__content>p{
  margin-bottom: 24px;
}
@media screen and (min-width: 768px){
  .cases{
     padding: 120px 0 160px;
  }
  .cases__item{
    padding-bottom: 40px;
    margin-bottom: 60px;
  }
  .cases__wrapper{
    display: flex;
    flex-direction: row-reverse;
  }
  .cases__header{
    padding-left: 40%;
  }
  .cases__img{
    flex-basis: 60%;
    flex-shrink: 0;
    margin-left: 32px;
    height: 350px;
  }
  .cases__content{
    display: flex;
    flex-direction: column;
  }
  .cases__link{
    margin-top: auto;
  }
}
@media screen and (min-width: 1200px){
  .cases__img{
    flex-basis: 75%;
    margin-left: 100px;
    height: 535px;
  }
  .cases__header{
    padding-left: 25%;
  }
  .cases__item{
    height: 170px;
  }
  .cases__item.active{
    height: 670px;
  }
}