.app-page-header {
    position: relative;
    margin: 0 15px;
    min-height: 700px;
    height: calc(100vh - var(--header-height-desktop) + var(--component-border-radius));
}

.app-page-header .app-page-header__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.app-page-header .app-page-header__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.app-page-header.home__header .app-page-header__bg img {
    object-position: bottom;
}

.app-page-header.technologies__header .app-page-header__bg img {
    object-position: 10%;
}

.app-page-header.case__header .app-page-header__bg img {
    object-position: top;
}

.app-page-header.team__header .app-page-header__bg img {
    object-position: 50% 25%;
}

@media screen and (max-width: 1024px) {
    .app-page-header.team__header .app-page-header__bg img {
        object-position: 60% top;
    }
}

.app-page-header__content {
    padding-top: 40px;
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    right: -1px;
}

.app-page-header__content-main {
    flex-grow: 1;
    display: flex;
    align-items: center;
    padding-bottom: 40px;
}


.app-page-header h1 {
    color: white;
    margin-top: 80px;
    margin-bottom: 20px;
    padding-right: 70px;
    max-width: 1200px;

    font-size: clamp(24px, 7.5vw, 84px) !important;
}

.app-page-header__description {
    max-width: 500px;
    padding: 50px;
    margin-left: auto;
    border-radius: 10px 0 0 10px;
    height: min-content;
    /*margin-top: 128px;*/
}

.app-page-header__description button {
    margin: 30px auto 0 auto;
    display: block;
}

@media screen and (max-width: 1024px) {
    .app-page-header {
        margin: 0 10px;
    }

    .app-page-header__content {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .app-page-header h1 {
        margin-bottom: 10px;
        padding-right: 30px;
    }

    .app-page-header__description {
        max-width: 370px;
        padding: 45px 30px;
    }

    .app-page-header__description button {
        margin: 15px auto 0 auto;
    }
}

@media screen and (max-width: 768px) {
    .app-page-header {
        margin: 0 5px;
        height: calc(100vh - var(--header-height-tablet) + var(--component-border-radius--mobile));
        min-height: 600px;
    }

    .app-page-header__content {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .app-page-header h1 {
        margin-top: 40px;
        margin-bottom: 5px;
        padding-right: 10px;
    }

    /* .representative-content h1 {
        font-size: 30px !important;
    } */

    .app-page-header__content-main {
        align-items: flex-end;
    }

    .app-page-header__description {
        padding: 30px 15px;
        margin-bottom: 164px;
        margin-top: 64px;
    }

    .app-page-header__description.index-description {
        width: min-content;
    }
}

@media screen and (max-width: 480px) {
    .app-page-header__description {
        max-width: 90%;
        margin-top: 56px;
    }
}

@media screen and (max-width: 480px) {
    .app-page-header {
        margin: 0 5px;
        height: calc(100vh - var(--header-height-mobile) + var(--component-border-radius--mobile));
        min-height: 550px;
    }
}

@media screen and (max-width: 768px) and (min-height: 800px) and (max-height: 900px) {
    .app-page-header__description {
        margin-bottom: 140px;
    }
}

@media screen and (max-width: 768px) and (min-height: 850px) {
    .app-page-header__description {
        margin-bottom: 180px;
    }
}

@media screen and (min-width: 1024px) and (max-height: 800px) {
    .app-page-header h1 {
        margin-top: 30px;
    }
}

@media screen and (min-width: 1024px) and (max-height: 750px) {
    .app-page-header h1 {
        margin-top: 0;
    }
}

@media screen and (min-width: 1024px) and (max-height: 680px) {
    .app-page-header__description {
        padding: 25px 30px;
    }
}
