#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: 70vh;
    position: absolute;
    transform: scale(1);
    transition: transform 1.5s cubic-bezier(0.21, 0, 0.18, 1);
    width: 100vw;
    top: 40vh;
    background-size: cover;
    background-position: center right;
    background-image: url('../img/ofert_hero_Obszar\ roboczy\ 1.jpg');
}

.animation {
    display: inline-block;
    animation: fadeIn 1.5s forwards;
    opacity: 0;
    transition-timing-function: cubic-bezier(0.785, 0.135, 0.15, 0.86);
}

.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;
    letter-spacing: 1px;
    margin-bottom: 20px;
    background: rgb(255, 255, 255);
    position: relative;
    animation: text 2.5s 1;
}

.text2 {
    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;
    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: 320px) and (orientation: portrait) {
    #hero-image {
        background-image: url('../img/ofert_hero_mobile_Obszar\ roboczy\ 1.jpg');
        background-size: cover;
        background-position: center center;
        height: 90vh;
        top: 0;
        width: 100vw;
    }
    .mapa {
        margin: 0 3vw;
    }
}

@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: 73vw;
        top: 0;
        left: 17vw;
    }
    @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 {
        height: 60vh;
        width: 100%;
        margin: 0;
        position: relative;
    }
    #hero-image {
        height: 50vh;
        width: 90vw;
        top: 5vh;
        left: 5vw;
        background-image: url('../img/ofert_hero_Obszar\ roboczy\ 1.jpg');
    }
    .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: 701px;
        top: 3vh;
        width: 70vw;
    }
    .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: 15vw;
    }
    .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: 0 0 0 10%;
    }
    .b-center {
        width: 50%;
        margin: 0 0 0 25%;
    }
    @keyframes mainBlock {
        0% {
            width: 0%;
            left: 0;
        }
        50% {
            width: 55%;
            left: 0;
        }
        100% {
            height: 100%;
            width: 0;
            left: 55%;
        }
    }
}