.error-info-box {
    position: relative;
    z-index: 2;
    padding: 30px 55% 25px 10px;
}

.error-info-box h1 {
  font-size: 50px;
  color: #ffc739;
  font-weight: 200;
  line-height: 1;
}

.error-info-box .content {
    color: #fff;
    font-size: 14px; 
    line-height: 1.25;
}

.error-info-box .content a {
  color: #ffc739;
}
  
@media only screen and (max-width: 40em) {
    #alior-error-page .person-image {
        min-width: 170%;
        right: -48%;
        top: 70px;
    }
}

@media only screen and (min-width: 40.063em) and (max-width: 64em) {
    .error-info-box {
        padding: 70px 60% 70px 10px;
    }
    .error-info-box h1 {
        font-size: 160px;
        margin-bottom: 15px;
    }
    #alior-error-page .person-image {
      right: -44%;
      top: 95px;
      width: auto;
      min-width: 170%;
    }
}

@media only screen and (min-width: 64.063em) {
    .error-info-box h1 {
        font-size: 315px; 
        line-height: 1;
    }
    
    #alior-error-page .person-image {
      top: 110px;
        left: 50%;
        margin-left: -480px;
    }
    
    #alior-error-page .person-image img,
    #alior-error-page .person-image {
      min-width: 1560px;
      max-width: 1860px;
      width: 100%;
    }
    
    #alior-error-page .person-image:before {
        content: '';
        display: block;
        background: #8a0c3d;
        position: absolute;
        bottom: 0;
        right: 100%;
        width: 10000px;
        height: 98.225%;
    }

    .error-info-box {
        padding: 60px 320px 130px 20px;
    }
}

@media only screen and (min-width: 64.063em) and (max-height: 699px) {
    .error-info-box h1 {
        font-size: 145px;
    }
}

@media only screen and (min-width: 64.063em) and (min-height: 700px) and (max-height: 800px) {
    .error-info-box h1 {
        font-size: 215px;
    }
}