.main-screen{
    height: calc(100vh - 120px);
    display: grid;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    grid-template-rows: auto 80px;
}
.main-screen__contant{
    max-width: 760px;
    text-align: center;
    display: grid;
    gap: 24px;
}
.main-screen__contant .btn-row{
    margin-top: 20px;
}

.to-bottom{
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.to-bottom > svg{
    max-height: 50px;
}
@keyframes bounce {
    0%,
    100%,
    20%,
    50%,
    80% {
        -webkit-transform: translateY(0);
        -ms-transform: translateY(0);
        transform: translateY(0);
    }
    40% {
        -webkit-transform: translateY(-6px);
        -ms-transform: translateY(-6px);
        transform: translateY(-6px);
    }
    60% {
        -webkit-transform: translateY(-4px);
        -ms-transform: translateY(-4px);
        transform: translateY(-4px);
    }
}
#animArrow{
    margin-top: 10px;
    -webkit-animation: bounce 2s infinite 2s;
    animation: bounce 2s infinite 2s;
    -webkit-transition: all .2s ease-in;
    transition: all .2s ease-in;
    transform: scale(1)
}
#main-page__flag{
    position: absolute;
    top: -150px;
    left: -150px;
    width: 120vw;
    height: 100vh;
    opacity: 0.6;
    z-index: -1;
}


.header-text__centered{
    display: grid;
    justify-items: center;
    align-items: center;
    gap: 24px;
    max-width: 1120px;
    margin: 0 auto 40px auto;
    text-align: center;
}

/* ******************* TABS *************************/

.tabs {
    width: 100%;
    display: grid;
    gap: 40px;
}

.tab-header {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.tab-button {
    background-color: transparent;
    border: none;
    padding: 0 10px 16px 10px;
    cursor: pointer;
    font-weight: 400;
    transition: 0.3s;
    border-bottom: 2px solid var(--white);
    transition: 0.3s;
    font-weight: 600;
    color: var(--text-color);
}
.tab-button:hover{
    color: var(--main-yellow);
}

.tab-button.active {
    border-bottom: 2px solid var(--main-blue);
    color: var(--main-blue);
}
.tab-content{
    min-height: 320px;
}
.tab-item {
    display: none;
    opacity: 0;
    transition: linear 0.3s;
    animation: fadeOut 0.63s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}


.tab-item.active {
    display: flex;
    gap: 24px;
    opacity: 1;
    animation: fadeIn 0.3s ease-in;
}
/* .project-tabs {
    border-top: 2px solid var(--white);
    margin: 24px 0;
} */

.project-tab {
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    background-color: transparent;
    color: var(--text-color);
    font-size: 16px;
    font-weight: 600;
    border-top: 2px solid var(--white);
}

.project-tab:hover {
    color: var(--main-yellow);
}
.project-tab.active {
    color: var(--main-blue);
    position: relative;
}
.project-tab.active::before{
    content: '';
    border: 2px solid var(--main-blue);
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
}
.tabs .project-card {
    display: none;
}
.tabs .project-card.show {
    display: grid;
}



.wework-card{
    display: grid;
    border-radius: 3px;
    background: var(--lightblue);
    border: 1px solid var(--lightblue);
    padding: 30px 24px;
    gap: 24px;
    /* max-width: 300px; */
    width: 300px;
    transition: linear 0.3s;
}
.wework-card__number{
    color: var(--main-blue);
    font-family: Mulish;
    font-size: 64px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}
.wework-card:hover{
    border-radius: 3px;
    border: 1px solid var(--main-blue);
    background: #FFF;
}
.wework-card:hover .wework-card__number{
    color: var(--main-yellow);
}
.wework-card:hover p{
    color: var(--main-blue);
}

.collected-sum:before{
    display: inline-block;
    content: '\20B4';
    margin-right: 4px;
}



/******************** prefoooter banner ********************/
.prefooter-baner{
    background-image: url(../img/headers/blue-bg.png);
    background-position: center;
    background-size: cover;
    padding: 100px 20px;
}
.prefooter-baner_text{
    display: grid;
    justify-items: center;
    text-align: center;
}
.prefooter-baner_text h2{
    color: var(--white);
    margin-bottom: 24px;
}
.prefooter-baner_text p{
    color: var(--white);
}
.prefooter-baner_text .button-centered{
    margin-top: 40px;
}
.prefooter-baner_text.small-container p{
    margin: 0;
}

/**************************** about cards ****************************/
.about-card{
    border-radius: 3px;
    padding: 24px;
}
.card__yellow{
    background: var(--main-yellow);
    color: var(--text-color);
}
.card__blue{
    background: var(--main-blue);
    color: var(--white);
}
.about-on-main{
    display: grid;
    grid-template-columns: 8fr 4fr;
    column-gap: 64px;
}
.about-on-main__left{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.about-on-main__right{
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 32px;
    flex-direction: column;
}
/* .about-card__header{
    margin-bottom: 24px;
} */

.about-card{
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media screen and (max-width: 1600px){

    .tab-item.active {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media screen and (max-width: 1420px){
    .about-on-main {
        display: grid;
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .header-text__centered {
        margin: 0 auto 32px auto;
    }

}
@media screen and (max-width: 1200px){
    .about-on-main__left {
        gap: 14px;
    }
    .main-screen:before {
        content: "";
        background-image: url('../img/headers/flag-bg.png');
        position: absolute;
        background-size: cover;
        top: -15vh;
        left: -100vw;
        bottom: 10vh;
        right: 0vw;
        z-index: -1;
        opacity: .3;
    }
    #main-page__flag{
        display: none;
    }
    .header-text__centered{
        margin: 0 auto 32px auto;
    }
    /* .about-card__header{
        margin-bottom: 16px;
    } */

}
@media screen and (max-width: 992px){
    .prefooter-baner {
        background-position: center;
        background-size: cover;
        padding: 60px 10px;
    }
}
@media screen and (max-width: 768px){
    .tab-button{
        font-size: 12px;
    }
    #main-page__flag {
        position: absolute;
        top: -150px;
        left: 0;
        width: 120vw;
        height: calc(100vh - 200px);
        opacity: 0.6;
        z-index: -1;
    }
}
@media screen and (max-width: 576px){
    .prefooter-baner {
        background-position: center;
        background-size: cover;
        padding: 60px 10px;

    }
    .about-on-main__left{
        grid-template-columns: 1fr;
    }
    .wework-card {
        border-radius: 3px;
        padding: 20px;
        gap: 0px;
        max-width: 100%;
        grid-template-columns: 1fr 2fr;
        align-items: center;
    }
    .main-screen__contant {
        max-width: 550px;
        text-align: center;
        display: grid;
        gap: 16px;
    }
    .tab-button {
        padding: 5px;
    }
    .tab-header {
        flex-wrap: wrap;
        row-gap: 16px;
    }
    .tabs{
        gap: 24px;
    }
    .project-tab {
        padding: 4px;
        font-size: 10px;
    }
    /* .about-card__header{
        margin-bottom: 10px;
    } */
    .project-tab.active::before {
        border: 1px solid var(--main-blue);
    }
    .about-card {
        gap: 8px;
    }
    .tab-content {
        min-height: auto;
    }
    .main-screen {
        height: calc(100svh - 140px);
    }

}

.first-header{
    margin-bottom: 0;
}
