header {
    background-image: url(../img/wavy-background.png);
    background-size: cover;
}

header .header-content-wrapper {
    display: grid;
    grid-template-columns: auto 384px;
    width: 1350px;
    top: 0;
    left: 0;
    transform: none;

    margin: 130px auto 0 auto;
}

header .header-content-wrapper > div {
    opacity: 0;
    transform: translateX(-10%);

    transition: all 1s;
}

header .header-content-wrapper > div[data-scroll="in"] {
    opacity: 1;
    transform: translateX(0);
}

header .header-content-wrapper .img-wrapper {
    opacity: 0;
    transform: translateX(105%);

    transition: all 1s;
}

header .header-content-wrapper .img-wrapper[data-scroll="in"] {
    opacity: 1;
    transform: translateX(0);
}

header .header-content-wrapper .header-img-background {
    width: 384px;
    height: 435px;
}

header .header-content-wrapper .header-img{
    position: absolute;
    width: 311px;
    height: 525px;
    top: -24%;
    left: 50%;
    transform: translateX(-50%);
}

header .header-content-wrapper .img-wrapper {
    position: relative;
}

header .header-content-wrapper .header-title {
    font-size: 58px;
    font-weight: 800;
    line-height: 68px;
    text-align: left;
}

header .header-content-wrapper .header-text {
    font-size: 18px;
    font-weight: 500;
    line-height: 30px;
    text-align: left;

    width: 60%;
    margin: 30px 0;
}

header .buttons-wrapper {
    justify-content: left;
}

/*custom scroll btn https://codepen.io/TKS31/pen/gOaKaxx */
.mouse-scroll-icon {
    position: absolute;
    z-index: 5;
    width: 30px;
    height: 60px;
    border: 2px solid white;
    border-radius: 60px;
    top: 90%;
    left: 50%;
    transform: translateX(-50%);
}

.mouse-scroll-icon::before {
    content: '';
    width: 12px;
    height: 12px;
    position: absolute;
    z-index: 10;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    border-radius: 50%;
    opacity: 1;
    animation: wheel 2s infinite;
}

@keyframes wheel {
    to {
        opacity: 0;
        top: 40px;
    }
}

.first {
    padding:100px 10px 110px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 100px;

    opacity: 0;
    transform: translateY(-10%);
    transition: all .8s;
}

.first[data-scroll="in"] {
    opacity: 1;
    transform: translateY(0);
}

.first > div {
    max-width:var(--page-width);
    position:relative;
    margin: auto;
}

.first .section-first-title-container {
    text-align: center;
    color: white;
}

.first .section-first-subtitle {
    font-size: 28px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: 0;
    text-align: center;
    color: #FF7C01;
}

.section-first-title {
    font-size: 65px;
    font-weight: 800;
    line-height: 75px;
    text-align: center;
    margin-top: 20px;
}

.first .section-first-card-container {
    position: relative;
    height: 650px;
    margin-top: 100px;
}

.first .section-first-card-container-bg {
    position: absolute;
    width: 100vw;
    height: 650px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    right: 0;
}

.first .section-first-card-container-bg .card-bg-img {
    width: 100vw;
    max-width: 100vw;
}

.first .card-container-wrapper {
    position: absolute;
    z-index: 100;
    width: 1440px;
    height: 317px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.first .section-first-card {
    background-color: white;
    border: 1px solid #F5F5F5;
    box-shadow: 0px 50px 70px -30px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    height: 317px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 30px;
    text-align: center;
    margin-top: 10%;

    transition: all .8s;
}

.first .section-first-card:nth-of-type(2),
.first .section-first-card:nth-of-type(4) {
    margin-top: -15%;
}

/*.first .section-first-card:first-of-type {
    opacity: 0;
    transform: translateX(-10%);

    transition-delay: .4s;
}

.first .section-first-card:first-of-type[data-scroll="in"] {
    opacity: 1;
    transform: translateX(0);
}

.first .section-first-card:nth-of-type(2) {
    opacity: 0;
    transform: translateX(-10%);

    transition-delay: .8s;
}

.first .section-first-card:nth-of-type(2)[data-scroll="in"] {
    opacity: 1;
    transform: translateX(0);
}

.first .section-first-card:nth-of-type(3) {
    opacity: 0;
    transform: translateX(-10%);

    transition-delay: 1.4s;
}

.first .section-first-card:nth-of-type(3)[data-scroll="in"] {
    opacity: 1;
    transform: translateX(0);
}

.first .section-first-card:nth-of-type(4) {
    opacity: 0;
    transform: translateX(-10%);

    transition-delay: 2s;
}

.first .section-first-card:nth-of-type(4)[data-scroll="in"] {
    opacity: 1;
    transform: translateX(0);
}

.first .section-first-card:nth-of-type(5) {
    opacity: 0;
    transform: translateX(-10%);

    transition-delay: 2.6s;
}

.first .section-first-card:nth-of-type(5)[data-scroll="in"] {
    opacity: 1;
    transform: translateX(0);
}

.first .section-first-card:nth-of-type(5)[data-scroll="out"] {
    opacity: 1;
    transform: translateX(0);
}*/

.first .section-first-card .section-first-card-step {
    font-weight: 700;
    font-size: 32px;
    color: #FFA300;
}

.first .section-first-card .section-first-card-title {
    font-weight: 700;
    font-size: 17px;
    margin: 4px 0 25px 0;
}

.first .section-first-card .section-first-card-text {
    font-size: 13px;
    font-weight: 500;
    line-height: 21px;
    color: #677282;
}

.first .section-first-terms-text {
    margin-top: 700px;
    color: white;
    font-size: 35px;
    font-weight: 700;
    line-height: 52px;
    text-align: center;
}

.first .section-first-terms-text br {
    display: none;
}

.first .section-first-terms-text span.gradient-text {
    font-weight: 800;
    background:var(--btn-primary);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

section.scnd {
    margin-top: 150px;

    opacity: 0;
    transform: translateY(-10%);
    transition: all .8s;
}

section.scnd[data-scroll="in"] {
    opacity: 1;
    transform: translateY(0);
}

section.scnd .section-first-title {
    color: white;
}

section.scnd .scnd-long-card-container {
    display:grid;
    grid-template-rows: repeat(4, 174px);
    gap: 70px;
    place-items: center;

    width: 55%;
    margin: 60px auto 100px auto;
}

section.scnd .scnd-long-card {
    width: 810px;
    height: 174px;
    background-color: white;
    box-shadow: 0px 50px 70px -30px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding-right: 30px;

    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

section.scnd .scnd-long-card .scnd-long-card-icon-wrapper {
    position: absolute;
    left: -7%;
    top: 50%;
    transform: translateY(-50%);
}

section.scnd .scnd-long-card .icon-bg {
    width: 124px;
    height: 140px;
    transform: rotate(-8deg);
}

section.scnd .scnd-long-card:nth-of-type(2) .icon-bg,
section.scnd .scnd-long-card:nth-of-type(4) .icon-bg{
    transform: rotate(4deg);
}

section.scnd .scnd-long-card:nth-of-type(2) .icon,
section.scnd .scnd-long-card:nth-of-type(4) .icon {
    transform: translate(-50%, -50%) rotate(4deg);
}

section.scnd .scnd-long-card .icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-8deg);
    width: 70px;
    height: 70px;
}

section.scnd .scnd-long-card-text-wrapper {
    margin-left: 120px;
}

section.scnd .scnd-long-card-text-wrapper .scnd-long-card-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 27px;
    letter-spacing: 0px;
}

section.scnd .scnd-long-card-text-wrapper .scnd-long-card-text {
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: 0px;
    color: #677282;
    margin-top: 10px;
}

section.thrd {
    margin-top: 150px;

    opacity: 0;
    transform: translateY(-10%);
    transition: all .8s;
}

section.thrd[data-scroll="in"] {
    opacity: 1;
    transform: translateY(0);
}
section.thrd .section-first-title {
    color: white;
}

section.thrd .section-first-title br:first-of-type {
    display: none;
}

section.thrd .section-first-title .gradient-text {
    font-weight: 800;
    text-transform: uppercase;
    background: var(--btn-primary);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

section.thrd .section-thrd-squares-container {
    width: var(--page-width);
    margin: 80px auto 160px auto;

    display: grid;
    grid-template-columns: repeat(3, 280px);
    gap: 20px;
    justify-content: center;
}

section.thrd .section-thrd-squares-container .section-thrd-square {
    background-color: white;
    border-radius: 20px;
    height:280px;
    text-align: center;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 35px;
}

section.thrd .section-thrd-squares-container img {
    width: 105px;
}

section.thrd .section-thrd-squares-container .section-thrd-square h3 {
    color: var(--main-color);
}

section.fourth {
   display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 100px;

    opacity: 0;
    transform: translateY(-10%);
    transition: .8s;
}

section.fourth[data-scroll="in"] {
    opacity: 1;
    transform: translateY(0);
}

section.fourth .fourth-img-container {
    position: relative;
}

section.fourth .fourth-img-container .fourth-img-text-container {
    position: absolute;
    left: 5%;
    top:50%;
    transform: translateY(-50%);
    width: 38%;
}

section.fourth .fourth-img-title {
    font-size: 49px;
    font-weight: 700;
    line-height: 72px;
    letter-spacing: 0px;
}

section.fourth .fourth-img-text {
    font-size: 16px;
    font-weight: 500;
    line-height: 30px;
    letter-spacing: 0px;
    color: #677282;
    margin-top: 10px;
}

section.fourth .fourth-img-logo {
    margin-top: 70px;
}

.fourth-mobile {
    display:none;
}

/*.first > div > .card {
    position:relative;
    padding:28px 50px 28px 110px;
    background-color:white;
    max-width:810px;
    min-height:230px;
    margin:0 auto 70px;
    border-radius:20px;
    display:flex;
    flex-direction:column;
    justify-content:center;
}
.first > div > .card .icon-wrapper {
    position:absolute;
    left:0;
    top:50%;
    transform:translate(-50%, -50%);
}
.first > div > .card h3 {
    font-weight: 700;
    font-size: 30px;
    line-height: 44px;
    color:#233754;
    margin-bottom:.5em;
}
.first > div > .card p {
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #677282;
} */

@media screen and (min-height: 2880px) {
    header {
        height: 35%;
    }
}

@media screen and (min-height: 2300px) and (max-height: 2879px) {

    header {
        height: 45%;
    }
}

@media screen and (min-height: 2000px) and (max-height: 2229px){

    header {
        height: 55%;
    }
}

@media screen and (min-height: 1200px) and (max-height: 1999px){

    header {
        height: 60%;
    }
}

@media screen and (max-height: 800px) {

    header {
        height: 120%;
    }
}

@media screen and (max-height: 799px) {
    header {
        height: 100%;
    }
}

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

    header .header-content-wrapper {
        width: 90%;
    }

    .first .section-first-card-container {
        margin-top: 50px;
        width: 90%;
        height: 550px;
    }

    .first .card-container-wrapper {
        width: 100%;
    }

    .first .section-first-terms-text {
        margin-top: 600px;
    }

    .first .section-first-card-container-bg {
        display: flex;
    }

    section.thrd .section-thrd-squares-container {
        width: 90%;
    }
}

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

    header .header-content-wrapper {
        display: flex;
        justify-content: space-between;
        grid-template-columns: none;
    }

    header .header-content-wrapper .header-title {
        font-size: 52px;
    }

    header .header-content-wrapper .header-img-background {
        width: 340px;
        height: auto;
        margin: 0;
    }

    header .header-content-wrapper .header-img {
        height: 450px;
        width: auto;
    }

    .first .section-first-card {
        height: 100%;
        padding: 20px;
    }

    section.fourth {
        width: 90%;
        margin: 0 auto 100px auto;
    }
}

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

    header .mouse-scroll-icon {
        display: none;
    }

    header .header-content-wrapper {
        flex-direction: column;
        margin-top: 80px;
    }

    header .header-content-wrapper > div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    header .header-content-wrapper .header-title {
        font-size: 45px;
        width: 90%;
        text-align: center;
    }

    header .header-content-wrapper .header-title br {
        display: none;
    }

    header .header-content-wrapper .header-text {
        text-align: center;
    }

    header .header-content-wrapper .img-wrapper {
        display: none;
    }

    .first .section-first-card-container-bg {
        top: 0;
        height: 0;
    }

    .first .section-first-card-container-bg .card-bg-img {
        display: none;
    }

    .first .card-container-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
        row-gap: 50px;
        margin-top: 100px;
        height: 700px;
    }

    .first .section-first-card {
        margin-top: 0;
    }

    .first .section-first-card:nth-of-type(2),
    .first .section-first-card:nth-of-type(4) {
        margin-top: 0;
    }

    .first .section-first-card:last-of-type {
        grid-column: 1 /span 2;
        width: 44%;
        justify-self: center;
        margin-top: 0;
    }

    .first .section-first-terms-text {
        margin-top: 850px;
    }

    section.scnd {
        margin-top: 430px;
    }

    section.scnd .scnd-long-card-container {
        width: 90%;
        margin-left: 8%;
    }

    section.fourth .fourth-img-title {
        font-size: 40px;
        line-height: 60px;
    }

    section.fourth .fourth-img-text {
        font-size: 13px;
        line-height: 23px;
    }
}


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

    header .header-content-wrapper {
        margin-top: 60px;
    }

    header .header-content-wrapper .header-title {
        width: 100%;
    }

    header .header-content-wrapper .header-text br {
        display: none;
    }

    .section-first-title {
        font-size: 55px;
        line-height: 65px;
    }

    .first {
        margin-bottom: 0;
    }

    .first .section-first-card-container {
        height: 100%;
    }

    .first .card-container-wrapper {
        top: 30%;
    }

    .first .section-first-terms-text {
        margin-top: 900px;
    }

    section.scnd {
        margin-top: 0px;
    }

    section.scnd .scnd-long-card-container {
        margin-left: 8%;
        grid-template-rows: repeat(4, 220px);
        gap: 50px;
    }

    section.scnd .scnd-long-card {
        width: 90%;
        height: 220px;
    }

    section.scnd .scnd-long-card:nth-of-type(2) {
        margin-top: 35px;
    }

    section.thrd {
        margin-top: 150px;
    }

    section.thrd .section-thrd-squares-container {
        grid-template-columns: repeat(2, 1fr);
        width: 80%;
        gap: 40px;
        margin-bottom: 80px;
    }

    section.fourth .fourth-img-container {
        display: none;
    }

    .fourth-mobile {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto 150px auto;
        width: 90%;
    }
}

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

    section.scnd .scnd-long-card-container {
        margin-top: 100px;
    }

}

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

    header .header-content-wrapper .header-title {
        font-size: 38px;
        line-height: 58px;
    }

    header .header-content-wrapper .header-text {
        width: 90%;
        margin: 40px 0;
    }

    .section-first-title {
        font-size: 45px;
    }

    .first .card-container-wrapper {
        gap: 30px;
    }

    .first .section-first-terms-text {
        margin-top: 850px;
    }

    section.scnd .section-first-title {
        font-size: 45px;
    }

    section.scnd .scnd-long-card-container {
        margin-top: 70px;
        gap: 50px;
        grid-template-rows: repeat(4, 300px);
        align-items: center;
    }

    section.scnd .scnd-long-card {
        height: 100%;
    }

    section.scnd .scnd-long-card:nth-of-type(2) {
        margin-top: 0;
    }

    section.thrd .section-thrd-squares-container {
        gap: 50px;
        grid-template-columns: 60%;
    }

    section.fourth {
        display: none;
    }
}

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

    header {
        height: 80%;
    }

    .first .card-container-wrapper {
        position: relative;
        top: 0;
        margin-top: 0;
        left: 0;
        transform: none;
        grid-template-columns: 100%;
        z-index: 0;
    }

    .first .section-first-card:last-of-type {
        width: 100%;
        grid-column: 1 / span 1;
    }

    .first .section-first-terms-text {
        margin-top: 590px;
    }

    .first .section-first-terms-text br {
        display: block;
    }

    section.scnd .scnd-long-card-container {
        grid-template-rows: repeat(4, 1fr);
        margin-top: 150px;
        gap: 100px;
        margin-left: auto;
    }

    section.scnd .scnd-long-card {
        padding: 70px 40px;
        justify-content: flex-end;
    }

    section.scnd .scnd-long-card:last-of-type {
        padding: 100px 40px 70px 40px;
    }

    section.scnd .scnd-long-card .scnd-long-card-icon-wrapper {
        top: -13%;
        left: 50%;
        transform: translateY(0) translateX(-50%);
    }

    section.scnd .scnd-long-card-text-wrapper {
        margin-left: 0;
        text-align: center;
    }

    section.thrd .section-first-title {
        font-size: 40px;
        line-height: 55px;
    }

    section.thrd .section-first-title br:first-of-type {
        display: block;
    }

    section.thrd .section-thrd-squares-container {
        grid-template-columns: 90%;
    }
}

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

    .section-first-title {
        width: 90%;
        margin: 10px auto;
    }

    section.scnd .section-first-title {
        width: 90%;
        margin: 0 auto;
    }

    section.scnd .scnd-long-card-container {
        grid-template-rows: 500px 500px 500px 550px;
        gap: 150px;
    }
}




    /*.first > div {
        padding: 10px;
    }

    .first > div > .card.card {
        padding: 100px 30px 28px;
        border-radius: 20px;
        text-align: center;
    }

    .first > div > .card.card:not(:last-child) {
        margin-bottom: 150px;
    }

    .first > div > .card .icon-wrapper {
        left: 50%;
        top: 0;
    }*/

