@font-face {
    font-family: 'Akzidenz';
    src: url(akzidenzgroteskpro_cn.ttf);
}

body{
    overflow-x: hidden;
    padding: 0;
    margin: 0;
    font-size: 28px;
    background: white;
    color: black;
    font-family: 'Akzidenz';
    font-weight: lighter;
    line-height: 100%;
}

html{
    overflow-x: hidden;
}

a, button{
    all: unset;
    cursor: pointer;
}

input{
    all: unset;
}

.wrapper{
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

h1,h2,h3,h4,h5,h6{
    padding: 0;
    margin: 0;
    font-weight: normal;
}

h2{
    font-size: 72px;
    line-height: 80%;
}

.row{
    display: flex;
    flex-direction: row;
}

.col{
    display: flex;
    flex-direction: column;
}

.center{
    align-items: center;
}

.g8{
    gap: 8px;
}
.g12{
    gap: 12px;
}
.g24{
    gap: 24px;
}
.g36{
    gap: 36px;
}
.g48{
    gap: 48px;
}
.g96{
    gap: 96px;
}
.jcsb{
    justify-content: space-between;
}

.menu a{
    font-size: 20px;
    opacity: .5;
    transition: all ease .15s;
}

.menu a:hover{
    opacity: 1;
}

h1{
    max-width: 540px;
    line-height: 80%;
    font-size: 72px;
    font-weight: unset;
}

.offer .col{
    margin-top: 36px;
    margin-bottom: 72px;
}

p{
    opacity: .7;
    margin: 0;
    padding: 0;
}

.header{
    position: fixed;
    padding-top: 20px;
    z-index: 1001;
    width: 100%;
}

.header__content{
    background: #ffffffd2;
    padding: 20px;
    backdrop-filter: blur(36px);
    border-radius: 36px;
    box-shadow: rgba(0, 0, 0, 0.05) 0 10px 24px;
}

.header__logo{
    width: 120px;
}

.welcome{
    background: #F1F6FF;
}

.welcome__content{
    padding-top: 180px;
    background: url(../img/welcome__img.png) right center no-repeat;
    background-size: 50%;
    padding-bottom: 120px;
}

.stats{
    max-width: 950px;
    margin: 0 auto;
    border-radius: 36px;
    padding: 36px;
    background: #ffffffd2;
    backdrop-filter: blur(36px);
    transform: translateY(100%);
    box-shadow: rgba(0, 0, 0, 0.05) 0 10px 24px;
}

.num{
    font-size: 72px;
    line-height: 80%;
    color: black;
    opacity: 1;
}

.offer{
    z-index: 999;
}

.btn__small{
    transition: all ease .15s;
    padding: 8px 18px;
    padding-right: 16px;
    border-radius: 24px;
    font-size: 18px;
    color: white;
    background: linear-gradient(to right, #4075A8, #6EA2D3);
}

.btn{
    display: flex;
    width: fit-content;
    transition: all ease .15s;
    padding: 16px 36px;
    padding-right: 32px;
    border-radius: 24px;
    font-size: 24px;
    color: white;
    background: linear-gradient(to right, #4075A8, #6EA2D3);
}

.btn__small:hover{
    transform: scale(1.05);
}

.btn:hover{
    transform: scale(1.05);
}

section{
    margin-top: 128px;
}

.welcome{
    margin-top: 0;
}

.grid-3{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    gap: 12px;
}

.gallery .grid-3 img{
    width: 100%;
}

.pavel{
    grid-row: span 2;
    object-fit: cover;
    height: 100%;
}


.sold__wrapper {
    width: 100%;
    max-width: 780px;
    background: #4076a823;
    border-radius: 36px;
    position: relative;
    box-shadow: rgba(0, 0, 0, 0.05) 0 10px 24px;
    padding: 12px;
    outline: 12px solid rgb(255, 255, 255);

}

.sold__line {
    height: 66px;
    border-radius: 24px;
    width: 0%; /* JS задаёт ширину */
    position: relative;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    transition: width 0.4s ease;
    background: #AC2425;
}

.sold__line p {
    color: #fff;
    font-size: 18px;
    margin: 0;
    margin-left: auto;
    padding-right: 12px;
}

.forecast{
    width: 100%;
    padding: 24px;
    border-radius: 36px;
    box-shadow: rgba(0, 0, 0, 0.05) 0 10px 24px;
}

.forecast img{
    width: 100%;
}

.calculator{
    width: 45%;
    padding: 24px;
    border-radius: 36px;
    box-shadow: rgba(0, 0, 0, 0.05) 0 10px 24px;
    
}

.forecast__wrapper{
    margin-top: 36px;
}

.smalltext{
    font-size: 20px;
    opacity: .5;
}

.calculator .col.g8{
    width: 100%;
}

input{
    all: unset;
    width: 100%;
    box-sizing: border-box;
    padding: 24px;
    border-radius: 24px;
    font-size: 20px;
}

.calculator input{
    background: #4075A815;
}

.about{
    background: url(../img/world.png) center top no-repeat;
    background-size: cover;
    padding-top: 350px;
}

.juri{
    width: fit-content;
    padding: 36px;
    border-radius: 36px;
    background: #ffffffac;
    backdrop-filter: blur(36px);
    box-shadow: rgba(0, 0, 0, 0.05) 0 10px 24px;
}

.about .stats{
    transform: translateY(70%);
}

.juri img{
    width: 150px;
}

input.error {
    color: #ff3b3b !important;
}

.competence{
    margin-top: 178px;
}

.grid__item{
    width: 100%;
    background: #F9F9F9;
    border-radius: 36px;
    box-sizing: border-box;
    text-align: center;
    padding: 12px;
}

.item__icon{
    width: 100px;
}

.ai{
    color: white;
    padding: 24px 0;
    padding-top: 48px;
    background: linear-gradient(to right, #4075A8, #51A4F5);
}

.ailawyer{
    max-width: 404px;
}

.ai__icon{
    padding: 12px;
    background: #ffffff33;
    border-radius: 12px;
}

.legal__img{
    width: 100%;
    max-width: 485px;
}

li{
    opacity: .7;
}

.docs{
    margin-top: 48px;
}

.docs img{
    border-radius: 24px;
    box-shadow: rgba(0, 0, 0, 0.05) 0 10px 24px;
    width: 100%;
}


.highlight{
    background: var(--blue);
    width: 1px;
    height: 0px;
}

.line{
    width: 36px;
    position: relative;
    transform: translateX(100px);
}

.ball{
    position: absolute;
    top: 0px;
    transform: translateX(-50%);
    will-change: top; /* Для оптимизации анимации */
}

.trail {
    width: 1px;
    height: 360px;
    background: black;
}

.process__line{
    position: relative;
}

.certificate{
    width: 100%;
    max-width: 520px;
}

.process__line .num{
    font-size: 48px;
    opacity: .5;
    color: #4075A8;
}

.g64{
    gap: 64px;
}

.process__line .smalltext{
    opacity: 1;
}

.founder{
    margin-top: 200px;
}

.founder__content{
    background: #F1F6FF;
    border-radius: 36px;
    padding-top: 48px;
    padding-bottom: 48px;
    position: relative;
    justify-content: center;
}

.founder__img {
    display: flex;
    transform: translateY(-20%);
    width: 100%;
    max-width: 360px;
    aspect-ratio: 1;
    height: fit-content;
    object-fit: contain;
}

.grid-2{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.spoiler{
    width: 100%;
    box-sizing: border-box;
    background: white;
    padding: 30px;
    border-radius: 36px;
    box-shadow: rgba(0, 0, 0, 0.10) 0 10px 24px;
}

.spoiler {
    cursor: pointer;
}

.spoiler__answer {
    padding-top: 8px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.spoiler.active .spoiler__answer {
    /* сюда JS будет ставить реальную высоту */
}

.footer{
    margin-top: 128px;
    background: #F1F6FF;
    padding-top: 48px;
    padding-bottom: 36px;
}

.mainform{
    width: 100%;
    max-width: 434px;
    color: white;
    border-radius: 36px;
    padding: 24px 12px;
    background: linear-gradient(to right, #4075A8, #6EA2D3);

}

.mainform p{
    opacity: 1;
}

.mainform input{
    background: white;
    color: black;
    font-size: 20px;
    width: 100%;
    box-sizing: border-box;
}

.mainform .btn{
    background: white;
    color: black;
}

.inputs{
    width: 100%;
}

.footer__line img{
    width: 120px;
}

.footer__line{
    margin-top: 24px;
}




@media screen and (max-width: 1240px) {
    .wrapper{
        max-width: 1040px;
    }

    h1{
        font-size: 58px;
    }

    p{
        font-size: 24px;
    }

    .num{
        font-size: 52px;
    }

    .sold__wrapper{
        max-width: 620px;
    }

    h2{
        font-size: 48px;
    }
}


@media screen and (max-width: 1060px) {
    .wrapper{
        max-width: 920px;
    }
}


@media screen and (max-width: 940px) {
    .wrapper{
        max-width: 750px;
    }

    .forecast__wrapper{
        flex-direction: column;
    }

    .calculator{
        width: 100%;
    }

    .about{
        background-size: contain;
    }

    .legal__content{
        flex-direction: column;
    }

    .legal__content .col.g24{
        align-items: center;
    }

    .menu{
        display: none;
    }


    .process__line{
        flex-direction: column;
    }

    .founder__content{
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 20px;
        gap: 0;
    }

    .mainform{
        max-width: 330px;
    }
}


@media screen and (max-width: 770px) {
    .wrapper{
        max-width: 520px;
    }

    .grid-3{
        grid-template-columns: repeat(2, 1fr);
    }

    .stats{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        transform: translateY(24px);
    }

    .stats .col.g8{
        align-items: center;
    }

    .num{
        font-size: 48px;
    }

    .offer .col{
        margin-bottom: 320px;
    }

    .offer{
        justify-content: center;
        text-align: center;
    }

    .offer .btn{
        display: inline-block;
    }

    .welcome__content{
        padding-top: 140px;
        background: url(../img/welcome__img.png) center center no-repeat;
        background-size: 100%;
        background-position-y: 55%;
    }

    .sold__wrapper{
        position: relative;
    }

    #sold-text{
        position: absolute;
        bottom: -50px;
        left: 30px;
        color: black;
        opacity: 1;
        width: 100px;
    }

    .ai__content .row.center.g24{
        flex-direction: column;
    }

    .footer__content{
        flex-direction: column;
        gap: 24px;
        align-items: center;
        text-align: center;
    }

    .footer__content .col.g24{
        align-items: center;
    }

    .sold__wrapper{
        box-sizing: border-box;
        max-width: 90%;
    }
}


@media screen and (max-width: 540px) {
    .wrapper{
        max-width: 360px;
    }

    .sold{
        flex-direction: column;
    }

    .forecast, .calculator{
        box-sizing: border-box;
    }

    h1{
        font-size: 40px;
    }

    .welcome__content{
                background-position-y: 46%;
    }

    p{
        font-size: 18px;
    }

    .juri{
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about{
        padding-top: 160px;
    }

    .about .stats {
        transform: translateY(15%);
    }

    .grid-3{
        grid-template-columns: repeat(1, 1fr);
    }

    .footer__line{
        gap: 24px;
        flex-direction: column;
        align-items: center;
    }

    .grid-2{
        grid-template-columns: repeat(1, 1fr);
    }

    p{
        line-height: 100%;
    }
}

@media screen and (max-width: 365px) {
    .wrapper{
        max-width: 300px;
    }
}
