html, body{
    font-size: 14px;
}

*{
    font-family: "Manrope", serif;
    --text-color: #131313;
    --main-color: #EC390E;
    --secondary-color: #001B38;
    --main-bg:#FFF5E2;
    box-sizing: border-box;
    font-size: 1.25rem;
}

body{
    transition: 0.2s ease;
    /*background-color: #FFF5E2;*/
    padding:0;
    margin: 0;
}

h1,h2,h3,h4,h5,h6{
    margin: 0;
}

h2{
    font-size: 4.29rem;
    line-height: 4.29rem;
    font-weight: 800;
    text-align: center;
}


.header{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: #FFFAF1;
    padding: 1.85rem 4.5rem;
}


.logo,.logo svg{
    cursor: pointer;
    height: 48px;
}

.header-links,.footer-links{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.header-links{
    gap: 32px !important;
}

.header-links *{
    cursor: pointer;
    font-size:15px;
    font-weight:500;
}

.header-links a,.footer-links a{
    font-size:15px;
    font-weight:500;
}

a{
    color: #131313;
    text-decoration: none;
}

.header-button,.mobile-header-button{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    color:#002A56;
    padding: 7px;
    width: 158px;
    border:2px solid #002A56;
    border-radius: 12px;
    font-size:16px;
    font-weight:600;
}

.burger{
    display: none;
}

@media all and (max-width: 1000px) {
    .burger{
        display: block;
    }
    h2{
       padding: 0 2rem;
    }
    .header{
        padding: 1.85rem 2.5rem;
    }
    .header-links{
        display: none;
    }

    .header-button{
        display: none;
    }
}

/*hero*/

.hero{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #FFFAF1;
    min-height: 47rem;
}

.landscape{
    position: absolute;
    z-index: 0;
    bottom: 0;
}

.landscape {
    height: 45rem;
}

.left{
    left: 0;
}

.right {
    right: 0;
}

.hero-content{
    z-index: 1;
    text-align: center;
}

.welcome{
    font-weight: 700;
    font-size: 3.43rem;
    color: #002A56;
    text-transform: uppercase;
}





.hero-content h1, .hero-content span{
    font-size: 9.15rem;
    font-weight: 800;
    line-height:9.15rem;
    margin: 0;
    color: #002A56;
}

.hero-content span{
    color: #60A5FA;
}

.hero-desc{
    margin-top: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
}

@media all and (max-width: 1000px) {
    .hero-content{
        padding: 2rem;
    }
    .left{
        display: none;
    }
    .welcome{
        font-size: 2rem;
    }
    .hero-content h1, .hero-content span{
        font-size: 6.15rem;
        line-height:6.15rem;
    }

}

/*desc block*/

.description{
    position: relative;
    padding-bottom: 2rem;
}


.desc-bg{
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: -1;
}

.stats-block{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.stats{
    width: 100%;
    max-width: 60rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 9.75rem 0 9.75rem;
}

.stats div{
    text-align: center;
}

.stats div h1{
    line-height: 1;
    margin: 0;
    font-size: 8.75rem;
    color: #60A5FA;
}

.stats div div{
    font-size: 2rem;
    font-weight: 700;
}

.why-block{
    display: flex;
    flex-direction: column;
    margin-top: 5rem;
}
.why-element{
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: #FAFEFF;
    border:0.25rem solid #ECF4FF;
    max-width: 100vw;
    width: 65vw;
    padding: 2rem 6rem 2rem 12rem;
    margin-bottom: 2rem;
    border-radius: 0 6rem 6rem 0;
    height: 20rem;
    border-left: none;
}

.why-element+.right{
    align-self: flex-end;
    border-radius:6rem  0  0  6rem;
    border-right: none;
    border-left: 0.25rem solid #ECF4FF;
}

.why-element img{
    height: 5.5rem;
    margin-right: 2rem;
}

.why-element h3{
    font-size: 2.86rem;
    font-weight: 800;
}

.why-element div div{
    font-size: 1.71rem;
    font-weight: 500;
}



@media all and (max-width: 1000px) {

    .description svg{
        display: none;
    }


    .why-block{
        padding: 2rem;
        margin-top: 1rem ;
    }

    .why-element, .why-element+.right{
        align-self: center;
        border-radius: 6rem;
        display: flex;
        flex-direction: column;
        width: 100%;
        border: 2px solid #ECF4FF;
        height: auto;
        padding: 4rem;
    }

    .why-element div div, .why-element h3{
        text-align: center;
    }

    .why-element h3{
        font-size: 2.36rem;
        line-height: 2.36rem;
        margin:0.5rem 0 1rem;
    }

    .why-element img{
        margin-right: 0;
    }

    .stats{
        padding: 2.75rem 0 0rem;
        flex-direction: column;
    }
    .stats div{
        margin-bottom: 2rem;
    }

}

/*motivation*/

.motivation{
    margin-top: 3rem;
    height: 35rem;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 8rem;
}

.motivation div{
    font-weight: 600;
    font-size: 3.43rem;
    margin-bottom: 2rem;
}

.motivation div span{
    font-size: 3.43rem;
    font-weight: 800;
}

.rb1,
.mc1,
.mc2{
    position: absolute;
    right: 0;
}

.rb1{
    height: 18rem;
    z-index: 1;
    right: 30.5rem;
    bottom: 17.5rem;
}

.mc1{
    height: 31.25rem;
    right: 0;
    z-index: 3;
    bottom: 1.5rem;
}

.mc2{
    height: 18rem;
    z-index: 2;
    right: 17rem;
    bottom: 10rem;
}

@media all and (max-width: 1000px) {
    .rb1{
        top: 0;
        bottom: auto;
        right: auto;
        height: 14rem;
        z-index: 0;
    }

    .mc1{

        height: 23rem;
        transform: scaleX(-1);
        left: 0;
        right: auto;
        bottom: auto;
        top: 8rem;
        z-index: 1;
    }
    .mc2{
        z-index: 1;
        right: 0;
        bottom: auto;
        top: 8rem;
    }

    .motivation div,    .motivation div span{
        font-size: 2.43rem;
        text-align: center;
        z-index: 2;
    }

    .motivation{
        height: 45rem;
        padding: 8rem 2rem 4rem;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        background-position: left top;
    }

}
/*price*/

.prices{
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    padding: 2rem 8rem;
}

.price-block{
    width: calc(33.33% - 1rem);
    background: #FAFEFF;
    border: 2px solid #ECF4FF;
    padding: 4rem;
    border-radius: 4.25rem;
}

.price-block .button{
    width: 100%;
    margin-top: 3rem;
}

.price-title{
    font-size: 1.86rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

.price-age{
    font-weight: 700;
    text-align: center;
    font-size: 2.46rem;
    color: #002A56;
    margin-bottom: 3rem;
}

.price-info{
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    margin-bottom: 1rem;
    align-items: center;
}
.price-info img{
    height: 2.5rem;
}

.price-info div:first-child{
    font-weight: 800;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 5rem 8rem;
}
.grid .col1 {
    display: grid;
    grid-template-rows: 2fr 3fr;
    gap: 0.75rem;
}
.grid .col2 {
    display: grid;
    grid-template-rows: 3fr 2fr;
    gap: 0.75rem;
}

.grid-element {
    background: #87ceeb;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    border-radius: 2rem;
    padding: 4.5rem;
}

.grid-element div:first-child{
    font-weight: 800;
    font-size: 4.5rem;
    line-height: 4.5rem;
    margin-bottom: 2.5rem;
}

.grid-element div:last-child{
    font-weight: 500;
    font-size: 1.86rem;
}

.grid .col2 .grid-element {
    background: #ff7f50;
}
.col1 .grid-element:nth-child(1) {
    border: 4px solid #ECF4FF;
    background-color: #FAFEFF;
}
.col1 .grid-element:nth-child(2) {
    border: 4px solid #F8E2EE;
    background-color:#FDF2F8;
}
.col2 .grid-element:nth-child(1) {
    border: 4px solid #F8F2E6;
    background-color: #FFFAF1;
}
.col2 .grid-element:nth-child(2) {
    border: 4px solid #D5EBD9;
    background-color: #F2FDF4;
}

@media all and (max-width: 1000px) {

    .grid-element div:first-child {
        font-size: 3.5rem;
        line-height: 3.5rem;
        margin-bottom: 1.5rem;
    }
    .grid,.col1 ,.col2 {
        display: block !important;
    }
    .prices{
        flex-direction: column;
        padding: 2rem;
    }
    .price-block{
        width: 100%;
    }
    .grid {
        padding: 2rem;
        grid-template-columns: 1fr; /* одна колонка */
        height: auto; /* висота контейнера під контент */
    }
    .col1,
    .col2 {
        display: contents; /* щоб елементи з обох колонок стали прямими дітьми .grid */
    }
    .grid-element {
        border-radius: 6rem;
        padding: 4rem;
        height: auto; /* висота під контент */
        margin-bottom: 10px; /* невеликий відступ між елементами */
    }
}

/*FAQ*/

.FAQ{
    background: #FAFEFF;
    display: flex;
    flex-direction: column;
    padding: 5rem 8rem;
    align-items: flex-start;
}

.question{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.question div{
    display: flex;
    align-self: center;
}

.question div:first-child{
    font-weight: 700;
    font-size: 1.86rem;
}

.question img{
    cursor: pointer;
    height: 2rem;
}

.expanded-block{
    width: 100%;
    border-bottom: 2px solid #ECF4FF;
    padding: 2rem 0 3rem;
    transition: 0.2s ease;
    max-height: 6.8rem;
    overflow: hidden;
}

.expanded{
    max-height: 30rem;
}

.expanded .minus{
    display: block !important;
}

.expanded .plus{
    display: none;
}

.expanded-block .minus{
    display: none;
}

.hiddenBlock{
    padding: 2rem 0 0;

}

@media all and (max-width: 1000px) {
    .FAQ{
        padding: 2rem;
    }

    .FAQ h2{
        margin-bottom: 2rem;
    }

    .question div:first-child{
        width: 20rem;
    }

    .expanded-block{
        max-height: 9rem;
    }
    .expanded{
        max-height: 30rem !important;
    }
}
/*Form*/

.form{
    padding: 4rem 0;
    background: #FFFAF1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.form form{
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 6rem 6rem;
    border-radius: 2.86rem;
    min-width: 40rem;
    max-width: 100%;
}

.form-title{
    text-align: center;
    color:#002A56;
    font-weight: 800;
    font-size: 3.43rem;
    margin-bottom: 3rem;
}

@media all and (max-width: 1000px) {
    .form {
        padding: 2rem;
    }

    .form form{
        min-width: auto;
        padding: 4rem 2rem;
    }
}

/*footer*/
.creds{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-self: center;
    flex-wrap: wrap;
    padding-bottom: 2rem;
}

footer{
    background: #FFFAF1;
    padding: 0 2rem;
}
.footer-links{
    flex-wrap: wrap;
}

.footer-row{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-self: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-row a{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-self: center;
}

.footer-row .logo{
    width: 20rem;
}
.tel{
    color:#002A56;
    font-weight: 800;
}
.footer-row .tel{
    width: 20rem;
    text-align: end;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}

@media all and (max-width: 1000px) {

    footer{
        padding-top: 4rem;
    }
    .footer-row{
        flex-direction: column-reverse;
        align-items: flex-start;
        justify-content: flex-start;
    }
    .footer-row .tel{
        width: auto;
        display: block;
        align-self: flex-start;
        font-size: 2rem;
    }
    .tel{
        align-self: center !important;
    }
    .footer-links{
        margin-top: 2rem;
    }

    .footer-links *{
        width: calc(50% - 1rem);
        gap:1rem;
    }
    .footer-row .logo{
        width: auto !important;
        margin-top: 2rem;
        align-self: flex-start;
    }
}

.teachersBlock{
    padding: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.teachersContainer{
    margin-top: 3rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.teacher{
    width: calc(33% - 1rem);
    /*height: 50rem;*/
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem;
    min-height: 50rem;
    margin-bottom: 4rem;

    background: #FAFEFF;
    border: 2px solid #ECF4FF;
    border-radius: 2rem;
}

.teacher-info{
    display: flex;
    position: relative;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
}

.teacher-info img{
    position: absolute;
    cursor: pointer;
    top: 1rem;
    right: -2.75rem;
    height: 2.5rem;
}

.teacher img:first-child{
    width: 12rem;
    height: 12rem;
    border-radius: 100%;
    object-fit: cover;
    object-position: center 28%;
    border: 0.25rem solid #F5C362;
}

.teacher h3{
    margin-top: 0.5rem;
    font-size: 2.5rem;
    font-weight: 800;
}

.teacher p{
    font-size: 1rem !important;
}

@media (max-width: 1000px) {
    .teachersBlock{
        padding: 3rem;
    }
    .teacher{
        width: 100%;
        height: auto !important;
        margin-bottom: 1rem;
    }

    .teachersContainer{
        flex-direction: column;
    }
}

/*common components*/

.bluewave-block{
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.bluewave-img{
    position: absolute;
    z-index: -1;
    bottom: -6rem;
    right: 0;
    height: 100%;
    width: 80vw;
    object-fit: cover;
}

.bluewave-img2{
    position: absolute;
    z-index: -1;
    left: 0;
    bottom: -89rem
}

.bluewave-block h2{
    margin-top: 7.14rem;
}

.input{
    margin-bottom: 1rem;
}

.input label{
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
    font-size: 1.43rem;
}

.input input{
    width: 100%;
    padding: 1rem 2rem;
    border-radius: 1.25rem;
    border: 2px solid #CAE0FF;
    background: #FAFEFF;
    outline: none;
    transition: 0.2s ease;
}

input:focus{
    border-color:#60A5FA;
}

input[type="number"] {
    -moz-appearance: textfield;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.button{
    cursor: pointer;
    font-size:  1.43rem;
    font-weight: 800;
    border: 2px solid #131313;
    outline: none;
    background-color: #fff;
    padding: 1.86rem 2.57rem;
    border-radius: 1.5rem;
    transition: 0.2s ease;
}

.button:hover{
    border-color:#002A56;
    background-color: #FFF5E2;
}


.portal {
    z-index: 2005;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.background {
    z-index: -1;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    background: rgba(0, 0, 0, 0.5);
}

.portal{
    display: none;
}

.content {
    overflow-y: auto;
    position: relative;
    width: 40rem;
    max-width: 100%;
    background: #fff;
    border-radius: 0.75rem;
    padding: 4rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    display: flex;
}

.open{
    display: flex !important;
}

.closeVideo{
    position: absolute;
    right: 2rem;
    top: 2rem;
    cursor: pointer;
}
.closeVideo img{
    height: 2.5rem;
    fill: #fff;
}

.content h2{
    margin-bottom: 2rem;
}

.content * {
    display: inline-block;
    text-align: center;
}

.content .button {
    margin-top: 2rem;
}


.mobile-content{
    display: none;
}
.close{
    display: none;
}

@media (max-width: 1000px) {
    .close{
        display: block;
        position: absolute;
        right: 2rem;
        top: 2rem;
    }
    .mobile-content{
        overflow-y: auto;
        position: relative;
        width: 40rem;
        max-width: 100%;
        background: #fff;
        border-radius: 0.75rem;
        padding: 4rem;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .mobile-header-button{
        margin-top: 2rem;
    }
    .mobile-header-links{
        margin-top: 2rem;
        display: flex;
        flex-direction: column;

    }
    .mobile-header-links * {
        font-size: 15px;
        font-weight: 500;
        margin-bottom: 1.75rem;
    }
    .mobile-content,.content{
        width: 100%;
        height: 100%;
        border-radius: 0;
        padding: 2rem;
    }
    .mobile-content{
        padding: 1.85rem 2.5rem !important;
    }
    .content h2{
        font-size: 3.6rem;
    }
    .content .button{
        margin-top: 4rem;
    }
    .button{
        padding: 1.36rem 2.57rem;
        width: 100%;
    }



    .bluewave-img{
        height: 100%;
        width: 100%;
    }

}

@media all and (max-width: 4000px) {
    html, body {
        font-size: 29px;
    }
}

@media all and (max-width: 2560px) {
    html, body {
        font-size: 22px;
    }
}

@media all and (max-width: 1920px) {
    html, body {
        font-size: 16px;
    }
}


@media all and (max-width: 1440px) {
    html, body {
        font-size: 12px;
    }
}

@media all and (max-width: 1300px) {
    html, body {
        font-size: 12px;
    }
}

@media all and (max-width: 1100px) {
    html, body {
        font-size: 10px;
    }
}

@media all and (max-width: 1000px) {
    html, body {
        font-size: 16px;
    }
}

@media all and (max-width: 800px) {
    html, body {
        font-size: 12px;
    }
}
