*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style-type: none;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-family: 'Inter', sans-serif;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;

    --container: 1230px;
    --container-padding: 15px;

    --background-color: #DCE9FF;
    --color-white: #fff;
    --color-black: #000;
    --color-dark-blue: #1C304B;
    --color-light-gray: #E0E0E0;

    --border-radius: 8px;
}

body{
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--color-dark-blue);
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

html{
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}
.logo-img{
    width: 125px;
    height: 45px;
    display: block;
}
.header{
    background-image: url('../img/hero-bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    width: 100%;

    @media screen and (max-width: 768px) {
        min-height: 100vh;
        background-position: 70% 0%;
    }
}

.container{
    max-width: var(--container);
    margin: auto;
    padding-inline: var(--container-padding);
    width: 100%;
}

.header-container{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 32px;
}

.nav-list{
    display: flex;
    align-items: center;
    gap: 20px;

    .nav-link{
        color: var(--color-white);
        font-size: 14px;
        font-weight: var(--font-weight-regular);
        transition: opacity 0.3s ease-in-out, color 0.3s ease-in-out;

        &:hover{
            opacity: 0.8;
        }
    }
}

.hero-content{
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 590px;
    flex: 1;

    h1{
        font-size: 56px;
        font-weight: var(--font-weight-semibold);
        color: var(--color-white);
        line-height: 100%;
        margin-bottom: 24px;
    }

}

.telegram-btn{
    background-color: var(--color-white);
    color: var(--color-dark-blue);
    font-size: 20px;
    font-weight: var(--font-weight-regular);
    border-radius: var(--border-radius);
    max-width: 400px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 0;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    border: 1px solid var(--color-white);
}

.telegram-btn:hover{
    opacity: 0.9;
}

.trust-btn{
    background-color: var(--color-dark-blue);
    color: var(--color-white);
    font-size: 16px;
    max-width: 295px;
    height: 52px;
    border: none;
}

.trust-btn:hover{
    opacity: 0.85;
}

.burger-btn{
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.margin-section{
    margin-top: 120px;

    @media screen and (max-width: 768px) {
        margin-top: 72px;
    }
}

.burger-line{
    width: 100%;
    height: 3px;
    background-color: var(--color-white);
    transition: all 0.3s ease;
    display: block;
    position: absolute;
    left: 0;
}

.burger-line:nth-child(1){
    top: 0;
}

.burger-line:nth-child(2){
    top: 50%;
    transform: translateY(-50%);
}

.burger-line:nth-child(3){
    bottom: 0;
}

.burger-btn.active .burger-line{
    background-color: var(--color-dark-blue);
}

.burger-btn.active .burger-line:nth-child(1){
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.burger-btn.active .burger-line:nth-child(2){
    opacity: 0;
}

.burger-btn.active .burger-line:nth-child(3){
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

.mobile-menu-overlay{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

.mobile-menu-overlay.active{
    opacity: 1;
    visibility: visible;
}

.about-intro{
    max-width: 590px;
    display: flex;
    flex-direction: column;
    gap: 24px;

    h2{
        font-size: 40px;
        font-weight: var(--font-weight-regular);
        color: var(--color-dark-blue);
        line-height: 100%;
    }
}

.about-text{
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.about-features{
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.feature-card{
    flex: 1 1 calc(50% - 15px);
    min-width: 280px;
    display: flex;
    flex-direction: column;
    background-color: #F8F8F9;

    img{
        width: 100%;
        height: auto;
        display: block;
    }
}

.card-content{
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 32px;

    h3{
        font-size: 22px;
        font-weight: var(--font-weight-regular);
        line-height: 100%;
    }
}

.trust-section{
    h2{
        font-size: 40px;
        font-weight: var(--font-weight-regular);
        color: var(--color-dark-blue);
        line-height: 100%;

    }
}
.trust-list-container{
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.trust-list,
.trust-list-container img{
    flex: 1 1 0;
    min-width: 300px;
}

.trust-list{
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 4vw, 32px);

    h2{
        font-size: 40px;
        font-weight: var(--font-weight-regular);
        color: var(--color-dark-blue);
        line-height: 100%;

        @media screen and (max-width: 768px) {
            font-size: 32px;
        }
    }

    button{
        background-color: var(--color-dark-blue);
        color: var(--color-white);
        font-size: 16px;
        font-weight: var(--font-weight-regular);
        border-radius: var(--border-radius);
        max-width: 295px;
        height: 52px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        cursor: pointer;
    }
}

.trust-list-container img{
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.trust-list-items{
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1.5vw, 10px);
}

.trust-item{
    display: flex;
    align-items: flex-start;
    gap: 8px;

    svg{
        flex-shrink: 0;
        margin-top: 2px;
    }

    p{
        font-size: clamp(14px, 1.8vw, 16px);
        line-height: 1.5;
        flex: 1;
    }
}

.info-content-container{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.info-content-title{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--color-dark-blue);
    color: var(--color-white);
    font-size: clamp(40px, 6vw, 68px);
    font-weight: var(--font-weight-regular);
    width: 50%;
    height: 520px;
    line-height: 128%;
    padding-inline: 120px;
}

.info-content{
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 64px;
    padding-inline: 120px;
    background-color: #5CB8B2;
    height: 520px;
    text-align: right;

    h3{
        font-size: clamp(40px, 7vw, 80px);
        font-weight: var(--font-weight-medium);

        line-height: 100%;
    }

    p{
        font-size: clamp(24px, 3vw, 32px);
    }
}

.program-section{
    h2{
        font-size: 40px;
        font-weight: var(--font-weight-regular);
        color: var(--color-dark-blue);
        line-height: 100%;
        margin-bottom: 32px;

        @media screen and (max-width: 768px) {
            font-size: 32px;
            margin-bottom: 24px;
        }
    }
}

.program-list{
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
}

.program-item{
    flex: 0 0 calc(33.333% - 20px);
    max-width: 385px;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    background-color: #F8F8F9;
    overflow: hidden;
    min-height: 485px;

    img{
        width: 100%;
        height: 200px;
        display: block;
        object-fit: cover;
        flex-shrink: 0;
    }
}

.program-item-content{
    display: flex;
    flex-direction: column;
    padding: 24px;
    flex-grow: 1;

    h3{
        font-size: 24px;
        font-weight: var(--font-weight-medium);
        line-height: 1.3;
        color: var(--color-dark-blue);
        margin-bottom: 16px;
    }
}

.program-item-description{
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-dark-blue);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 24px;
    min-height: 63px;
}

.program-item.expanded .program-item-description{
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
}

.program-toggle-btn{
    background-color: transparent;
    color: #6B6B6B;
    font-size: 14px;
    font-weight: var(--font-weight-regular);
    border: none;
    border-radius: var(--border-radius);
    padding: 10px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: center;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.program-toggle-btn:hover{
    opacity: 0.7;
}

.program-toggle-btn svg{
    flex-shrink: 0;
}

.program-item-extended-content{
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.program-item.expanded .program-item-extended-content{
    max-height: 1000px;
    opacity: 1;
    margin-top: 8px;
}

.program-advantages-title{
    font-size: 16px;
    font-weight: var(--font-weight-medium);
    color: var(--color-dark-blue);
    margin-bottom: 14px;
    align-self: flex-start;
}

.program-item-content-list{
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-self: stretch;
}

.program-item-content-list-item{
    display: flex;
    align-items: flex-start;
    gap: 8px;

    svg{
        flex-shrink: 0;
        margin-top: 2px;
    }

    p{
        font-size: 14px;
        line-height: 1.5;
        color: var(--color-dark-blue);
    }
}

.program-collapse-btn{
    background-color: transparent;
    color: #6B6B6B;
    font-size: 14px;
    font-weight: var(--font-weight-regular);
    border: none;
    border-radius: var(--border-radius);
    padding: 10px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.program-collapse-btn:hover{
    opacity: 0.7;
}

.program-collapse-btn svg{
    flex-shrink: 0;
}

.arrow-up{
    transform: rotate(180deg);
}

.sucsess-section{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;

    .sucsess-content{
        flex: 1 1 50%;
        max-width: 590px;
        width: 100%;
        height: 688px;
        object-fit: cover;
        background-size: cover;
        background-position: center top;
        background-repeat: no-repeat;
        padding: 32px;
        color: var(--color-white);
        font-size: clamp(32px, 5vw, 40px);
    }
}

.reviews-section{
    position: relative;
    overflow: hidden;

    h2{
        font-size: 40px;
        font-weight: var(--font-weight-regular);
        color: var(--color-dark-blue);
        line-height: 100%;
        margin-bottom: 32px;

        @media screen and (max-width: 768px) {
            font-size: 32px;
            margin-bottom: 24px;
        }
    }
}

.reviews-slider-wrapper{
    position: relative;
    overflow: visible;
    margin-bottom: 32px;
}

.reviews-container{
    overflow: visible !important;
}

.reviewsSwiper{
    overflow: visible !important;
    padding-bottom: 10px;
}

.reviews-blur-overlay{
    position: absolute;
    top: 0;
    bottom: 0;
    width: 200px;
    pointer-events: none;
    z-index: 10;

    @media screen and (max-width: 768px) {
        display: none;
    }
}

.reviews-blur-left{
    left: 0;
    background: linear-gradient(to right, var(--background-color) 0%, transparent 100%);
}

.reviews-blur-right{
    right: 0;
    background: linear-gradient(to left, var(--background-color) 0%, transparent 100%);
}

.review-card{
    background-color: var(--color-white);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: all 0.4s ease;
}

.review-stars{
    display: flex;
    align-items: center;
    
    svg{
        display: block;
    }
}

.review-text-container{
    flex-grow: 1;
    position: relative;
    max-height: 67px;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-card.expanded .review-text-container{
    max-height: 1000px;
}

.review-text{
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-dark-blue);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
}

.review-card.expanded .review-text{
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
}

.read-more-btn{
    background: transparent;
    border: none;
    color: #6B6B6B;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    text-align: left;
    transition: opacity 0.3s ease;
    font-family: var(--font-family);
}

.counter{
    display: inline-block;
    font-variant-numeric: tabular-nums;
}


.animate-on-scroll{
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.animated{
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

.fade-up{
    transform: translateY(40px);
}

.fade-down{
    transform: translateY(-40px);
}

.fade-left{
    transform: translateX(-40px);
}

.fade-right{
    transform: translateX(40px);
}

.fade-in{
    opacity: 0;
}

.scale-in{
    transform: scale(0.95);
}

.delay-100{
    transition-delay: 0.1s;
}

.delay-200{
    transition-delay: 0.2s;
}

.delay-300{
    transition-delay: 0.3s;
}

.delay-400{
    transition-delay: 0.4s;
}

.read-more-btn:hover{
    opacity: 0.7;
}

.review-author{
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 8px;

    img{
        width: 48px;
        height: 48px;
        border-radius: 50%;
        object-fit: cover;
    }
}

.author-info{
    display: flex;
    flex-direction: column;
    gap: 4px;

    h4{
        font-size: 16px;
        font-weight: var(--font-weight-medium);
        color: var(--color-dark-blue);
        margin: 0;
    }

    p{
        font-size: 14px;
        color: #6B6B6B;
        margin: 0;
        line-height: 1.4;

        em{
            font-style: italic;
        }
    }
}

.reviews-navigation{
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.review-nav-btn{
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #E0E0E0;
    background-color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--color-dark-blue);

    &:hover{
        background-color: var(--color-dark-blue);
        color: var(--color-white);
        border-color: var(--color-dark-blue);
    }

    &.swiper-button-disabled{
        opacity: 0.3;
        cursor: not-allowed;
    }
}

.footer{
    background-color: #030C18;
    padding-top: 72px;
    padding-bottom: 72px;
    color: var(--color-white);
}

.footer img{
    display: block;
    height: auto;
}

.left-content img{
    max-width: 500px;
    width: 100%;
}

.footer-text{
    font-size: 21px;
    font-weight: var(--font-weight-regular);
    line-height: 100%;
    margin-top: 16px;
}

.footer-link{
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-white);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-link:hover{
    opacity: 0.8;
}

.footer-link img{
    width: 50px;
    height: 50px;
}

.footer-container{
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.footer-nav-list{
    display: flex;
    gap: 32px;
}

.divider{
    width: 100%;
    height: 1px;
    background-color: var(--color-white);
    opacity: 0.2;
    margin: 32px 0;
}

.footer-social{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.footer-nav-link{
    color: var(--color-white);
    font-size: 16px;
    font-weight: var(--font-weight-regular);
    line-height: 100%;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-nav-link:hover{
    opacity: 0.8;
}

.footer-social-item{
    display: flex;
    flex-direction: column;
    gap: 14px;
    color: #A0A0A0;

    a{
        color: #A0A0A0;
        transition: .3s opacity ease;

        &:hover{
            opacity: 0.8;
        }
    }
}


@media (max-width: 768px) {

    .hero-content{
        h1{
            font-size: 42px;
            text-align: left;
        }
    }

    .about-features{
        flex-direction: column;
        gap: 24px;
    }

    .feature-card{
        flex: 1 1 100%;
        min-width: unset;
    }

    .trust-list-container{
        flex-direction: column;
        gap: 24px;
    }

    .trust-list,
    .trust-list-container img{
        min-width: unset;
    }

    .trust-list .telegram-btn{
        max-width: 100%;
    }

    .burger-btn{
        display: flex;
    }

    .nav-list{
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--background-color);
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
        gap: 0;
        padding: 0;
        transition: left 0.3s ease;
        z-index: 1000;
    }

    .nav-list.active{
        left: 0;
    }

    .nav-item{
        border-top: 1px solid var(--color-light-gray);
    }

    .nav-item:last-child{
        border-bottom: 1px solid var(--color-light-gray);
    }

    .nav-link{
        color: var(--color-dark-blue) !important;
        font-size: 32px !important;
        font-weight: var(--font-weight-regular);
        display: block;
        padding: 24px 40px;
        text-align: left;
    }

    .info-content-container{
        flex-direction: column;
    }

    .info-content-title,
    .info-content{
        width: 100%;
        height: 250px;
        padding-inline: 24px;
    }

    .info-content{
        gap: 32px;
        text-align: left;
    }

    .program-list{
        flex-direction: column;
        gap: 24px;
    }

    .program-item{
        flex: 1 1 100%;
        max-width: 100%;
        min-width: unset;
    }

    .program-item-content h3{
        min-height: unset;
    }

    .sucsess-section{
        flex-direction: column;
        gap: 24px;
    }

    .sucsess-section .sucsess-content{
        flex: 1 1 100%;
        max-width: 100%;
        height: auto;
        min-height: 400px;
    }

    .footer-container{
        flex-wrap: wrap;
        gap: 24px;
        flex-direction: column;
    }

    .left-content{
        flex: 0 0 auto;
        max-width: 120px;
    }

    .left-content img{
        width: 100%;
        height: auto;
    }

    .right-content{
        flex: 1 1 auto;
    }

    .footer-nav-list{
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .footer-social{
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
    }

    .footer-text{
        display: none;
    }

    .divider{
        margin: 24px 0;
    }

    .footer-social-item{
        flex: 1;
    }

    .footer-link{
        flex-shrink: 0;
    }

    .reviews-section h2{
        font-size: 28px;
        margin-bottom: 20px;
    }
}

@media (max-width: 420px) {
    .hero-content{
        max-width: 400px;
        h1{
            font-size: 41px;
        }
        p{
            text-align: left;
        }
    }
}
