@import '~styles/variables';
@import '~styles/mixins';

.root {
  display: block;
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 20px;
  overflow-x: hidden;
}

.title {
  margin-top: 60px;
  margin-left: 180px;
}

.second-dots-figure {
  @include bg-image('dots/AUsec.svg');

  position: absolute;
  overflow: hidden;
  top: 65px;
  right: 30px;
  width: 170px;
  height: 150px;

  @media screen and (max-width: 767px) {
    display: none;
  }
}

.first-dots-figure {
  @include bg-image('dots/AUfirst.svg');

  position: absolute;
  overflow: hidden;
  display: none;
  top: 181px;
  left: 104px;
  width: 170px;
  height: 50px;
}

.slider-root {
  display: block;
  margin-top: 40px;

  @media screen and (min-width: 1500px) {
    max-width: 1400px;
  }
}

.buttons {
  display: flex;
  justify-content: center;
  align-items: center;
}

.button {
  display: block;
  width: 150px;
  height: 40px;
  font-size: 14px;
  text-align: center;
  font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;
  font-weight: bold;
  text-transform: uppercase;

  @media screen and (min-width: 1500px) {
    width: 200px;
    height: 60px;
    font-size: 16px;
  }

  @media screen and (max-width: 767px) {
    font-size: 13px;
  }

  @media screen and (max-width: 381px) {
    font-size: 11px;
  }
}

.active {
  background-color: #343f5b;
  color: white;
  font-size: 14px;

  @media screen and (min-width: 1500px) {
    font-size: 16px;
  }

  @media screen and (max-width: 767px) {
    font-size: 11px;
  }
}

.dot {
  @include bg-image('dots/dot.svg');

  width: 10px;
  height: 10px;
  margin: 0 35px;

  @media screen and (max-width: 381px) {
    margin: 0 20px;
    width: 7px;
  }

  @media screen and (max-width: 340px) {
    margin: 0 15px;
    width: 7px;
  }
}

.info {
  margin-top: 100px;

  @media screen and (max-width: 950px) {
    width: 100%;
    max-width: 100%;
    flex: auto;
  }
}

.photo-root {
  display: block;
  width: 360px;

  @media screen and (min-width: 1500px) {
    width: 450px;
  }

  @media screen and (max-width: 950px) {
    margin: auto;
  }
}

.photo {
  &-sherbakov {
    @include bg-image('photo/3.jpg');

    width: 315px;
    height: 315px;
    background-size: cover;
    background-position: -100px center;
    background-repeat: no-repeat;
    z-index: 2;

    @media screen and (min-width: 1500px) {
      width: 450px;
      height: 450px;
      background-position: -190px center;
    }

    @media screen and (min-width: 1500px) and (max-height: 800px) {
      width: 370px;
      height: 370px;
      background-position: -160px center;
    }

    &::before {
      content: '';
      display: block;
      position: relative;
      width: 315px;
      height: 315px;
      border: 20px solid #33335b;
      transform: translate3d(-40px, -40px, 0);
      z-index: -1;

      @media screen and (min-width: 1500px) {
        width: 450px;
        height: 450px;
      }

      @media screen and (min-width: 1500px) and (max-height: 800px) {
        width: 370px;
        height: 370px;
      }

      @media screen and (max-width: 400px) {
        width: 250px;
        height: 250px;
      }
    }

    @media screen and (max-width: 950px) and (min-width: 420px) {
      margin-left: 31px;
    }

    @media screen and (max-width: 420px) {
      margin: auto;
    }

    @media screen and (max-width: 400px) {
      width: 250px;
      height: 250px;
      margin-left: calc(50% - 145px);
    }
  }

  &-ivanova {
    @include bg-image('photo/4.jpg');

    width: 315px;
    height: 315px;
    background-size: cover;
    background-position: -95px center;
    background-repeat: no-repeat;
    z-index: 2;

    &::before {
      content: '';
      display: block;
      position: relative;
      width: 315px;
      height: 315px;
      border: 20px solid #33335b;
      transform: translate3d(-40px, -40px, 0);
      z-index: -1;

      @media screen and (min-width: 1500px) {
        width: 450px;
        height: 450px;
      }

      @media screen and (min-width: 1500px) and (max-height: 800px) {
        width: 370px;
        height: 370px;
      }

      @media screen and (max-width: 400px) {
        width: 250px;
        height: 250px;
      }
    }

    @media screen and (min-width: 1500px) {
      width: 450px;
      height: 450px;
      background-position: -160px center;
    }

    @media screen and (min-width: 1500px) and (max-height: 800px) {
      width: 370px;
      height: 370px;
      background-position: -140px center;
    }

    @media screen and (max-width: 950px) and (min-width: 420px) {
      margin-left: 45px;
    }

    @media screen and (max-width: 420px) {
      margin: auto;
    }

    @media screen and (max-width: 400px) {
      width: 250px;
      height: 250px;
      margin-left: calc(50% - 145px);
    }
  }
}

.main-info {
  display: flex;
  align-items: center;
  max-width: 660px;
}

.info-title {
  font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  display: inline-block;
  -webkit-transform: rotate(-90deg);
  transform: rotate(-90deg);
  font-size: 30px;
  margin-top: 230px;
  white-space: nowrap;
  line-height: 0;
  margin-left: -100px;

  @media screen and (min-width: 1500px) {
    font-size: 35px;
    margin-top: 270px;
    margin-left: -120px;
  }

  @media screen and (min-width: 1500px) and (max-height: 800px) {
    font-size: 34px;
    margin-top: 241px;
    margin-left: -153px;
  }

  @media screen and (max-width: 1199px) {
    margin-top: 260px;
  }

  @media screen and (max-width: 950px) {
    display: none;
  }
}

.info-text {
  font-family: 'Helvetica Neue-t', Arial, Helvetica, sans-serif;
  font-weight: normal;

  @media screen and (min-width: 1500px) {
    font-size: 23px;
    text-align: justify;
  }

  @media screen and (min-width: 1500px) and (max-height: 800px) {
    font-size: 19px;
    text-align: justify;
    margin-left: -30px;
  }

  p {
    margin-bottom: 15px;

    @media screen and (min-width: 1500px) {
      margin-bottom: 20px;
    }
  }
}

.info-block {
  margin-top: 53px;

  @media screen and (max-width: 950px) {
    max-width: 100%;
    flex: auto;
  }
}

.contacts {
  display: flex;

  @media screen and (min-width: 1500px) {
    font-size: 19px;
    align-items: center;
  }

  @media screen and (min-width: 1500px) and (max-height: 800px) {
    font-size: 19px;
    text-align: justify;
    margin-left: -30px;
  }

  @media screen and (max-width: 950px) {
    justify-content: center;
  }

  @media screen and (max-width: 506px) {
    flex-direction: column;
  }
}

.info-contacts {
  display: block;
  position: absolute;
  font-family: 'Helvetica Neue-t', Arial, Helvetica, sans-serif;
  font-weight: normal;
  max-width: 210px;
  margin: 0;

  span {
    font-weight: bold;
  }

  @media screen and (min-width: 1500px) {
    max-width: 275px;
    font-size: 20px;
  }

  @media screen and (max-width: 950px) {
    position: relative;
  }
}

.mob-photo-root {
  @media screen and (max-width: 350px) {
    margin-right: -25px;
    margin-left: -30px;
  }
}

.contact {
  border: 4px solid #212a41;
  font-family: 'Helvetica Neue-t', Arial, Helvetica, sans-serif;
  color: #212a41;
  width: 250px;
  height: 50px;
  text-align: center;
  margin-left: 214px;

  @include hover {
    background: #212a41;
    color: #fff;
  }

  @media screen and (min-width: 1500px) {
    width: 300px;
    height: 65px;
    margin-left: 282px;
    font-size: 19px;
  }

  @media screen and (max-width: 1200px) {
    line-height: 20px;
  }

  @media screen and (max-width: 950px) {
    margin-left: 20px;
  }

  @media screen and (max-width: 506px) {
    margin: auto;
    margin-top: 10px;
  }
}
