.head-container {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    flex-direction: column;
    align-items: flex-end;
}

.box {
    width: 70vw;
    height: 98vh;
    position: relative;
    overflow: hidden;
    backface-visibility: hidden;
}

a {
    color: #000000;
}

a:hover {
    color: #fdd568;
}

.overlay {
    position: absolute;
    left: 0;
    top: 50;
    background-color: #ffffff;
    background-image: url('images/logo_z_nazwa.png');
    background-position: center center;
    background-size: 300px 300px;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
}

.about-content a::after {
    content: '\21F2';
    color: #fcc671;
    padding-left: 5px;
}

.bcg-photo {
    position: absolute;
    left: 0;
    top: 20px;
    background-image: url('images/main_photo-top_full.jpg');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    -webkit-box-shadow: inset 3px -1px 10px -8px rgba(0, 0, 0, 0.51);
    -moz-box-shadow: inset 3px -1px 10px -8px rgba(0, 0, 0, 0.51);
    box-shadow: inset 3px -1px 10px -8px rgba(0, 0, 0, 0.51);
    width: 100%;
    height: 100%;
}

.gold-box {
    width: 100%;
    top: 25vh;
    position: absolute;
    z-index: 1;
}

.gold-box::before {
    content: '';
    position: absolute;
    width: 1px;
    height: 100%;
    left: 40px;
    background-color: #fdd568
}

.gold-box h2 {
    padding: 30px 70px;
    opacity: 1;
    color: #23404a;
    font-family: 'Amatic SC', cursive;
    font-weight: 300;
    font-size: 50px;
}

.flex-container {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
}

.flex-item-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 35%;
    height: 100%;
    z-index: 0;
}

.flex-item-2 {
    position: absolute;
    top: 0;
    right: 0;
    width: 65%;
    height: 100%;
}

.flex-bottom {
    position: relative;
    padding: 150px 200px 150px 100px;
    height: 100%;
    margin-left: 40vw;
    background-color: rgba(255, 255, 255, .97);
}

.flex-photo-bottom {
    background-image: url('images/main_photo-bottom.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    height: 100%;
    width: 100%;
}

.text-container-100 {
    padding: 150px 250px 100px 250px;
}

.text-container-50 {
    padding: 25px 50px 25px 50px;
}

.line-vertical {
    width: 200px;
    height: 1px;
    ;
    background-color: #003b58;
    margin: 20px 0;
}

.fadeIn-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

.fadIn-up-animation {
    opacity: 1;
    transform: translateY(0);
}

.fadeIn-photo {
    opacity: 0;
    transform: translateY(70px);
    transition: all 1s ease-out;
}

.fadIn-photo-animation {
    opacity: 1;
    transform: translate(0);
}

.line-info {
    transition: all .6s ease-out;
    transform: scale(0);
    background-color: #fdd568;
    height: 1px;
    width: 90%;
    margin: auto;
}

.line-info-animation {
    transform: scale(1);
}

@import url("https://fonts.googleapis.com/css?family=Mukta:700");
* {
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: border-box;
}

button {
    position: relative;
    display: inline-block;
    cursor: pointer;
    outline: none;
    border: 0;
    vertical-align: middle;
    text-decoration: none;
    background: transparent;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
}

button.learn-more {
    width: 15rem;
    height: auto;
}

button.learn-more .circle {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: relative;
    display: block;
    margin: 0;
    width: 3rem;
    height: 3rem;
    background: #f5a216;
}

button.learn-more .circle .icon {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    background: #fff;
}

button.learn-more .circle .icon.arrow {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    left: 0.625rem;
    width: 1.125rem;
    height: 0.125rem;
    background: none;
}

button.learn-more .circle .icon.arrow::before {
    position: absolute;
    content: "";
    top: -0.25rem;
    right: 0.0625rem;
    width: 0.625rem;
    height: 0.625rem;
    border-top: 0.125rem solid #fff;
    border-right: 0.125rem solid #fff;
    transform: rotate(45deg);
}

button.learn-more .button-text {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.75rem 0;
    margin: 0 0 0 1.85rem;
    color: #282936;
    font-weight: 700;
    line-height: 1.6;
    text-align: center;
    text-transform: uppercase;
    font-size: .9rem;
    line-height: 1.5;
    font-family: "Lexend Exa", sans-serif;
}

button:hover .circle {
    width: 100%;
}

button:hover .circle .icon.arrow {
    background: #fff;
    transform: translate(1rem, 0);
}

button:hover .button-text {
    color: #fff;
}

.szkolenie_head {
    width: 60%;
}

@media only screen and (max-width: 854px) {
    .box {
        height: 100vh;
    }
    .bcg-photo {
        background-image: url('images/main_photo-top_500px.jpg');
        background-size: cover;
    }
    .overlay {
        background-size: 200px 200px;
    }
    .gold-box h2 {
        padding: 20px 0 20px 30px;
        font-size: 40px;
    }
    .gold-box::before {
        left: 15px;
    }
    .flex-bottom {
        padding: 50px 30px 30px 30px;
        margin: 200px 0 0 0;
        background-color: rgba(242, 242, 242, .93);
        width: 90%;
        left: 10vw;
    }
    .flex-item-1 {
        width: 80%;
    }
    .flex-item-2 {
        position: relative;
        z-index: 1;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
    }
    .text-container-100 {
        padding: 30px 20px;
    }
    .text-container-50 {
        padding: 25px 50px 25px 50px;
    }
    .szkolenie_head {
        width: 93vw;
    }
    span::before {
        content: '\A';
        white-space: pre;
    }
    .szkolenie_head {
        width: 100%;
    }
    button.learn-more .button-text {
        padding: 0 0;
    }
}