@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300..700&display=swap');
:root {
    --Black: #141414;
    --White: #fff;
    --Primary: #D7B56D;
    --Primary-hover: #eec366;
    --Background: #1A1A1A;
    --Divider: #38373C;
    --Gray: #434343;
}
*{
    box-sizing: border-box;
}
html{
    overflow-x: hidden;
}
body{
    background: var(--Black);

    color: var(--White);
    font-family: "Comfortaa", sans-serif;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 160%;
    overflow-x: hidden;
    margin: 0;
    @media (max-width: 767px) {
        font-size: 14px;
    }
}
/*typography*/
h1, .h1{
    font-size: 36px;
    font-style: normal;
    font-weight: 700;
    line-height: 120%; /* 43.2px */
    @media(max-width: 991px){
        font-size: 32px;
    }
    @media(max-width: 767px){
        font-size: 28px;
    }
}
h2, .h2{
    font-size: 28px;
    font-style: normal;
    font-weight: 700;
    line-height: 120%; /* 33.6px */
    @media(max-width: 767px){
        font-size: 22px;
    }
}
h4, .s-1{
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 120%; /* 24px */
    @media(max-width: 767px){
        font-size: 18px;
    }
}
h5, .s-2{
    font-size: 15px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%; /* 22.5px */
}
.small-text{
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px; /* 138.462% */
}

/*typography end*/
/*buttons*/
a{
    color: var(--Primary);
    transition: .3s;
    text-decoration: none;
    &:hover{
        text-decoration: underline;
    }
}
button{
    transition: .3s;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}
.button{
    display: flex;
    padding: 15px 24px;
    align-items: center;
    gap: 8px;

    color: var(--Black);
    text-align: center;

    font-size: 13px;
    font-style: normal;
    font-weight: 600;
    line-height: 18px; /* 138.462% */

    border-radius: 60px;
    background: var(--Primary);
    &:hover{
        background: var(--Primary-hover);
        text-decoration: none;
    }
}
/*buttons and*/
section{
    padding: 40px 0;
}
.container{
    max-width: calc(1224px + 30px);
    padding: 0 15px;
    margin-inline: auto;

}

picture{
    display: flex;
}
ul{
    padding-left: 16px;
    li{
        &:not(:last-child){
            margin-bottom: 8px;
        }
        &::marker{
            color: var(--Primary);
        }
    }

}

.accordion {
    max-width: 768px;
}

.accordion-item {
    border-radius: 16px;
    border: 1px solid var(--Divider);
    background: var(--Background);
    &:not(:last-child){
        margin-bottom: 16px;
    }
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 20px;
    padding-right: 40px;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    background: transparent;
    color: var(--White);
    gap: 8px;
    position: relative;
    svg{
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: 15px;
    }
    span{
        color: var(--Primary);
    }
}

.accordion-header:hover {
   color: var(--Primary);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 20px;
    p{
        margin: 0 0 20px 0;
    }
}


.accordion-item.open{
    .accordion-header{
        svg{
            transform: translateY(-50%) rotate(180deg);
        }
    }
    .accordion-content {
        max-height: 100%; /* Налаштуйте на потрібний максимум або використовуйте "fit-content" */
    }
}

header{
    max-width: calc(1376px + 30px);
    margin-inline: auto;
    display: flex;
    align-items: center;
    padding: 8px 15px 0 15px;
    background: var(--Black);
    & > a{
        img{
            @media (max-width: 767px) {
                width: 48px;
            }
        }
    }
    nav{
        ul{
            display: flex;
            align-items: center;
            height: 100%;
            padding: 0;
            margin: 0;
            gap: 32px;
            list-style: none;
            li{
                &:not(:last-child){
                    margin-bottom: 0;
                    line-height: 1;
                }
            }
            a{
                color: var(--White);
                &:hover{
                    color: var(--Primary);
                    text-decoration: none;
                }
                &.button{
                    display: none;
                }
            }
        }
        @media(max-width: 991px){
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background: var(--Black);
            border-bottom: 1px solid var(--Divider);
            border-radius: 0 0 24px 24px;
            transform: translateX(100%);
            transition: transform .3s;
            ul{
                flex-direction: column;
                justify-content: center;
                height: 100vh;
                a{
                    &.button{
                        display: flex;
                    }
                }
            }
        }
    }

    @media (min-width: 991px) {
        justify-content: space-between;

    }
    @media(max-width: 991px){
        position: fixed;
        z-index: 99;
        width: 100%;
        padding: 8px 15px;
        & > a{
            position: relative;
            z-index: 1;
            &.button{
                margin-left: auto;
                margin-right: 24px;
            }
        }
    }
    &._active{
        nav{
            transform: translateX(0);
        }
    }

}
.top-banner{
    padding-bottom: 0px;
    position: relative;
    overflow: hidden;
    .container{
        position: relative;
        @media(max-width: 767px){
            display: flex;
            flex-direction: column;
        }

        h1, h4{
            text-align: center;
            margin-inline: auto;
            margin-bottom: 20px;
        }
        h4{
            color: var(--Primary);
        }
        @media (min-width: 767px) {
            h1{
                max-width: 808px;

            }
            h4{
                max-width: 750px;
                color: var(--Primary);
            }
            p{
                max-width: 470px;
            }
        }
        @media(max-width: 767px){
            h1, h4{
                margin-bottom: 12px;
                margin-top: 0;
            }
            h1{
                font-size: 22px;
                margin-top: 20px;
            }
            h4{
                font-size: 18px;
            }
        }

        & > p{
            text-align: center;
            margin: 0;
            margin-inline: auto;

        }
        & > picture img{
            display: block;
            margin-inline: auto;
            margin-top: 10px;
            max-height: 454px;
            margin-bottom: -1px;
        }
    }


    &::after{
        content: '';
        width: 632px;
        height: 632px;
        display: block;
        position: absolute;
        bottom: 0;
        border-radius: 50%;
        z-index: -1;
        left: 50%;
        transform: translateX(-50%) translateY(38%);
        background: var(--Primary);
        @media (max-width: 767px) {
            transform: translateX(-50%) translateY(3%);
        }
    }
    &::before{
        content: '';
        width: 759px;
        height: 759px;
        display: block;
        position: absolute;
        bottom: 0;
        border-radius: 50%;
        z-index: -2;
        left: 50%;
        transform: translateX(-50%) translateY(38%);
        background: rgba(39, 106, 230, 0.20);
        filter: blur(80px);
        @media (max-width: 767px) {
            transform: translateX(-50%) translateY(7%);
        }
    }
    .top-banner__adv{
        @media(max-width: 1200px){
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 50px 0 0 0;
            gap: 24px;
            position: relative;
            height: 200px;
        }
        @media(max-width: 767px){
            flex-direction: column;
            order: 2;
            margin-top: 0;
            height: 230px;
            &:before{
                content: '';
                display: block;
                width: calc(100% + 32px);
                height: 100%;
                position: absolute;
                top: 0;
                left: 50%;
                transform: translateX(-50%);
                background: var(--Black);
                z-index: -0;

            }

        }
        .item{

            border-radius: 24px;
            border: 1px solid var(--Divider);
            background: var(--Background);
            padding: 24px 20px;
            position: absolute;
            z-index: 1;
            @media(min-width: 1200px){

            }
            @media (max-width: 767px) {
                padding: 18px 15px;
            }

            h2{
                margin: 0;
            }
            p{
                margin: 0;
                @media(max-width: 767px){
                    max-width: 70%;
                }
            }
            &.rating{
                display: flex;
                width: 320px;
                flex-direction: column;
                align-items: flex-start;
                gap: 16px;

                transform: rotate(-6deg) translateY(70px);
                opacity: 0;
                transition: .5s;

                @media(min-width: 1200px){
                    top: 28%;
                    left: -43px;
                }
                @media (max-width: 1200px) {
                    gap: 12px;
                    left: 0;
                    top: 0;
                }
                @media (max-width: 767px) {
                    gap: 12px;
                    left: -16px;
                    top: 0;
                    width: 270px;

                }
                &._active{
                transform: rotate(-6deg) translateY(0px);
                opacity: 1;
                }
            }
            &.connection{
                display: flex;
                width: 320px;
                flex-direction: column;
                align-items: flex-start;
                @media (min-width: 1200px) {
                    transform: rotate(8deg) translateY(70px);
                    top: 38%;
                    right: -43px;
                    opacity: 0;
                    transition: .5s;

                    &._active{
                        transform: rotate(8deg) translateY(0px);
                        opacity: 1;
                    }
                }


                img{
                    max-height: 48px;
                }
                h2{
                    margin: 24px 0 12px 0;
                }
                @media (max-width: 1200px) {
                    transform: rotate(8deg) translateX(45%) translateY(70px);
                    opacity: 0;
                    right: 110px;
                    top: 20px;
                    opacity: 0;
                    transition: .5s;
                    h2{
                        margin: 16px 0 8px 0;
                    }
                    &._active{
                        transform: rotate(8deg) translateX(45%) translateY(0px);
                        opacity: 1;
                    }
                }
                @media (max-width: 767px) {
                    right: 8px;
                }
            }
        }

    }
}
.advantages{
    padding-top: 0;
    @media (max-width: 767px) {
        .container{
            max-width: 100%;
            padding: 0;
        }
    }
    .advantages__wrapper{
        @media (min-width: 767px) {
            border-radius: 40px;
            border: 1px solid var(--Divider);
        }
        border-bottom: 1px solid var(--Divider);

        background: var(--Background);

        display: flex;
        padding: 40px;
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
        @media(max-width: 991px){
            padding: 32px;
        }
        @media (max-width: 767px) {
            padding: 40px 16px;
            gap: 26px;
        }

    }
    .advantages__header{
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        @media (max-width: 767px) {
            grid-template-columns: 1fr;
        }
        h2, h5{
            margin: 0;
            width: 100%;
        }
        h5{
            color: var(--Primary);
        }
    }
    .advantages__block{
        display: grid;
        grid-template-columns: 1fr 1fr;
        @media (max-width: 767px) {
            grid-template-columns: 1fr;
        }
        gap: 16px;
        .item{
            display: flex;
            padding: 16px;
            align-items: center;
            gap: 16px;
            border-radius: 16px;
            background: var(--Black);
            @media(max-width: 767px){
                align-items: flex-start;
            }
            p{
                margin: 0;
            }
            h4{
                margin: 0 0 4px 0;
            }
            .number{
                grid-row: span 2;
                color: var(--Primary);
                text-align: center;
                leading-trim: both;
                text-edge: cap;
                font-size: 48px;
                font-style: normal;
                font-weight: 700;
                line-height: 120%; /* 57.6px */
            }
        }
    }
}
.about{
    position: relative;
    .about__wrapper{
        display: grid;

        align-items: center;
        @media(min-width: 991px){
            grid-template-columns: 50% 50%;
            gap: 48px;
        }
        .about__images{
            width: 100%;
            overflow: hidden;
            border-radius: 40px;
            @media (max-width: 991px) {
                border-radius: 20px;
            }
            img{
                width: 100%;
            }
        }
        @media(max-width: 991px){
            flex-direction: column;

        }
        h2{
            margin-bottom: 24px;
        }
        h4{
            margin-bottom: 24px;
            color: var(--Primary);
        }
        .about__info{
        }
    }
    &:after{
        content: '';
        width: 597px;
        height: 597px;
        display: block;
        border-radius: 50%;
        position: absolute;
        right: -409px;
        bottom: 0;
        transform: translateY(50%);

        background: rgba(39, 106, 230, 0.20);
        filter: blur(80px);
    }
}
.review{
    position: relative;
    h2{
        text-align: center;
        margin: 0;
    }
    .review__carousel{
        margin: 32px 0;
        position: relative;
        @media(max-width: 1200px){
            width: calc(100% + 30px);
        }
        .slider-nav{
            button{
                position: absolute;
                top: 50%;
                transform: translateY(-50%);
                background: transparent;
                border: none;
                outline: none;
                svg{
                    path{
                        transition: .3s;
                    }
                }
                &:hover{
                    svg{
                        path{
                            fill: var(--Primary-hover)
                        }
                    }
                }
                &.btn-prev{
                    right: calc(100% + 24px);
                }
                &.btn-next{
                    left: calc(100% + 24px);
                }
            }
        }
    }
    .review__item{
        width: 392px;
        padding: 24px;
        border-radius: 24px;
        border: 1px solid var(--Divider);
        background: var(--Background);
        @media(max-width: 1400px){
            width: 334px;
        }
        @media(max-width: 1400px){
            width: 392px;
        }
        @media(max-width: 767px){
            width: 322px;
        }
        .review__author{
            display: flex;
            align-items: center;
            gap: 12px;
            img{
                width: 64px;
                height: 64px;
                border-radius: 50%;
                overflow: hidden;
            }
            h4{
               margin: 0 0 8px 0;
            }
        }
        p{
            margin: 12px 0;


        }
        button{
            border: none;
            outline: none;
            background: transparent;
            color: var(--Primary);


            font-size: 15px;
            font-style: normal;
            font-weight: 700;
            line-height: 150%; /* 22.5px */
            &:hover{
                color: var(--Primary-hover);
            }
        }
        &.hidden{
            p{
                text-overflow: ellipsis;
                display: -moz-box;
                -moz-box-orient: vertical;
                display: -webkit-box;
                -webkit-line-clamp: 6;
                -webkit-box-orient: vertical;
                line-clamp: 6;
                box-orient: vertical;
                overflow: hidden;
            }
        }
    }
    .owl-theme .owl-nav.disabled + .owl-dots{
        margin-top: 30px;
    }
    .owl-theme .owl-dots .owl-dot{

    }
    .owl-theme .owl-dots .owl-dot span{
        width: 8px;
        height: 8px;
        background: var(--Gray);
        margin: 0 6px;
    }
    .owl-theme .owl-dots .owl-dot.active span{
        background: var(--Primary);
    }

    .review__bottom{
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        h5{
            margin: 0;
        }
        .button{
            padding: 15px 88px;
        }
    }
    &:after{
        content: '';
        width: 581px;
        height: 581px;
        display: block;
        border-radius: 50%;
        position: absolute;
        left: -452px;
        bottom: 0;
        transform: translateY(50%);

        background: rgba(39, 106, 230, 0.20);
        filter: blur(80px);
    }
}
.problems{
    h2{
        text-align: center;
        margin: 0 0 24px 0;
    }
    .problems__block{
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        @media (max-width: 767px) {
            grid-template-columns: 1fr;
        }
    }
    .problems__item{
        border-radius: 16px;
        border: 1px solid var(--Divider);
        background: var(--Background);

        display: flex;
        gap: 16px;
        padding: 16px;

        .text{
            h4{
                margin: 0 0 4px 0;
            }
            p{
                margin: 0;
            }
        }
    }
}
.approach{
    .approach__block{
        display: flex;
        align-items: center;
        gap: 68px;
        .approach__image{

            overflow: hidden;
        }
        @media (min-width: 991px) {

            .approach__image{
                border-radius: 40px;
                max-width: 50%;
                img{
                    width: 100%;
                }
            }

        }
        @media (max-width: 991px) {
            flex-direction: column;
            gap: 40px;
            .approach__image{
                border-radius: 20px;
                width: 100%;
                img{
                    width: 100%;
                }
            }
        }
    }
    .approach__info{
        h2, h4{
            margin: 0 0 16px 0;
        }
        p, ul{
            margin: 0 0 32px 0;
        }
    }
    .approach__link{
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        align-items: center;
        .s-2{
            color: var(--Primary);
        }
    }
}
.program{
   .container{
       max-width: 808px;
   }
    .program__info{
        text-align: center;
        margin-bottom: 32px;
        h2{
            margin: 0 0 16px 0;
        }
    }
}
.banner{

    .banner__wrapper{
        overflow: hidden;
        @media(min-width: 767px){
            border-radius: 40px;
            border: 1px solid var(--Divider);
            background: var(--Background);
            display: grid;
            grid-template-columns: 1fr 1fr;
        }
        @media (max-width: 767px) {
            grid-template-columns: 1fr;

        }
    }
    .banner__info{

        @media (min-width: 767px){
            padding: 50px 40px;
        }
        @media (max-width: 767px) {
            border-radius: 40px 40px 0 0;
            border: 1px solid var(--Divider);
            background: var(--Background);

            padding: 40px 20px;
        }
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        h2,h5{
            margin: 0 0 16px 0;
        }
        h5{
            color: var(--Primary);
        }
        p{
            margin: 0 0 32px 0;
        }
    }
    .banner__image{
        display: flex;
        height: 100%;
        @media (min-width: 767px) {
            flex: 0  0 50%;
            min-height: 300px;
        }
        img{
            object-fit: cover;
            aspect-ratio: 612 / 360;
            width: 100%;
            @media(max-width: 1400px){
                width: 100%;
            }
            @media(max-width: 767px){
                border-radius: 0 0 40px 40px;
            }
        }
    }
}
.banner-reverse{
    .banner__info{
        position: relative;

        @media (max-width: 767px) {
            border-radius: 0 0 40px 40px;
            overflow: hidden;

        }
        &:after{
            content: '';
            display: block;
            width: 513px;
            height: 513px;
            border-radius: 513px;
            background: rgba(39, 106, 230, 0.20);
            filter: blur(80px);
            position: absolute;
            left: 40%;
            top: 65%;
            z-index: 0;
        }
    }
    .banner__image{
        img{

            @media(max-width: 767px){
                border-radius: 40px 40px 0 0 ;
            }
        }
    }
}
.faq{
    h2{
        text-align: center;
        margin: 0 0 20px 0;
    }
    .faq__block{
        max-width: 808px;
        margin-inline: auto;
    }
}
.site-footer{
    border-radius: 32px 32px 0px 0px;
    border: 1px solid var(--Divider);
    background: var(--Background);
    .container{
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 16px;
        padding-bottom: 16px;
        @media(max-width: 767px){
            flex-direction: column-reverse;
            gap: 32px;
        }
    }
    .footer__social{
        display: flex;
        align-items: center;
        gap: 32px;
        a{
            display: flex;
            align-items: center;
            gap: 12px;
            color: #fff;
            &:hover{
                color: var(--Primary);
            }
        }
    }
}

@media(max-width: 1400px){
    .container{
        max-width: calc(1024px + 30px);
    }

}
.mobile-menu__toggler {
    width: 24px;
    height: 24px;
    background-color: transparent;
    border: none;
    outline: none;
    display: flex;
    position: relative;
    align-items: center;
}

.mobile-menu__toggler span {
    height: 2px;
    width: 100%;
    background-color: var(--White);
    display: block;
    position: absolute;
    transition: all 0.2s ease-in;
    border-radius: 1px;
    left: 0
}

.mobile-menu__toggler span:first-child {
    transform: translateY(-7px)
}

.mobile-menu__toggler span:nth-child(2) {
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    opacity: 1
}

.mobile-menu__toggler span:last-child {
    transform: translateY(7px)
}

.mobile-menu__toggler._active span {
    background-color: var(--Primary)
}

.mobile-menu__toggler._active span:first-child {
    transform: translateY(0) rotate(45deg)
}

.mobile-menu__toggler._active span:nth-child(2) {
    transform: translateY(0) translateX(-30px);
    opacity: 0
}

.mobile-menu__toggler._active span:last-child {
    transform: translateY(0) rotate(-45deg)
}

@media (min-width: 992px) {
    .mobile-menu__toggler {
        display:none
    }
}
@media (max-width: 991px) {
    .site-wrapper{
        padding-top: 50px;
    }
}

#wpadminbar {
    top: auto !important;
    bottom: 0 !important;
}
html {
    margin-top: 0 !important;
    margin-bottom: 32px !important; /* Высота admin bar */
}
@media screen and (max-width: 782px) {
    html {
        margin-bottom: 46px !important; /* Высота admin bar на маленьких экранах */
    }
}