/* Services */

.services{
    position:relative;
    overflow:hidden;
    padding-bottom:56px;
}

@media (max-width:576px){
    .services{
        padding-bottom:40px;
    }
}

.services__list{
    display:flex;
    flex-direction:column;
    border-top:1px solid rgba(255,255,255,.08);
}

.service{
    position:relative;
    display:grid;
    grid-template-columns:72px minmax(0,1fr) minmax(0,1.15fr) auto;
    gap:32px;
    align-items:center;
    padding:36px 24px;
    border-bottom:1px solid rgba(255,255,255,.08);
    border-radius:var(--radius);
    transition:background .45s ease;
}

.service::before{
    content:"";
    position:absolute;
    left:0;
    bottom:-1px;
    width:100%;
    height:1px;
    background:linear-gradient(90deg,var(--accent),var(--accent-warm));
    transform:scaleX(0);
    transform-origin:left;
    transition:transform .6s cubic-bezier(.22,1,.36,1);
}

.service__num{
    color:var(--accent);
    font-size:14px;
    font-weight:600;
    letter-spacing:.1em;
    font-variant-numeric:tabular-nums;
}

.service__title{
    font-size:38px;
    font-weight:600;
    line-height:1.05;
    letter-spacing:-.03em;
    overflow-wrap:anywhere;
    transition:transform .45s cubic-bezier(.22,1,.36,1);
}

.service__text{
    color:var(--gray);
    font-size:16px;
    line-height:1.7;
}

.service__tags{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:16px;
}

.service__tags li{
    padding:6px 12px;
    border:1px solid rgba(255,255,255,.1);
    border-radius:999px;
    color:var(--gray);
    font-size:13px;
    line-height:1.3;
    transition:border-color .35s ease, color .35s ease;
}

.service__link{
    display:inline-flex;
    align-items:center;
    gap:12px;
    height:52px;
    padding:0 8px 0 22px;
    border:1px solid rgba(255,255,255,.14);
    border-radius:999px;
    color:var(--text);
    font-size:15px;
    font-weight:500;
    white-space:nowrap;
    transition:background .35s ease, color .35s ease, border-color .35s ease;
}

.service__link svg{
    display:block;
    flex-shrink:0;
    width:36px;
    height:36px;
    padding:8px;
    border-radius:50%;
    background:var(--text);
    color:var(--bg);
    transition:transform .45s cubic-bezier(.22,1,.36,1);
}

.service__link:focus-visible{
    outline:2px solid var(--accent);
    outline-offset:3px;
}

@media (hover:hover){

    .service:hover{
        background:rgba(255,255,255,.025);
    }

    .service:hover::before{
        transform:scaleX(1);
    }

    .service:hover .service__title{
        transform:translateX(8px);
    }

    .service:hover .service__tags li{
        border-color:rgba(255,255,255,.2);
        color:var(--text);
    }

    .service__link:hover{
        border-color:var(--text);
        background:var(--text);
        color:var(--bg);
    }

    .service__link:hover svg{
        background:var(--bg);
        color:var(--text);
        transform:translateX(3px);
    }
}

@media (max-width:1200px){

    .service{
        grid-template-columns:56px minmax(0,1fr) auto;
        row-gap:18px;
    }

    .service__info{
        grid-column:2 / 4;
        grid-row:2;
    }
}

@media (max-width:768px){

    .service{
        grid-template-columns:minmax(0,1fr) auto;
        gap:14px 16px;
        padding:28px 0;
        border-radius:0;
    }

    .service__num{
        grid-column:1 / 3;
    }

    .service__title{
        grid-column:1;
        grid-row:2;
    }

    .service__link{
        grid-column:2;
        grid-row:2;
        padding:0;
        border:0;
        height:auto;
    }

    .service__link-text{
        position:absolute;
        width:1px;
        height:1px;
        overflow:hidden;
        clip:rect(0 0 0 0);
        white-space:nowrap;
    }

    .service__link svg{
        width:44px;
        height:44px;
        padding:11px;
    }

    .service__info{
        grid-column:1 / 3;
        grid-row:3;
    }

    .service__tags{
        margin-top:12px;
    }
}

@media (prefers-reduced-motion:reduce){

    .service,
    .service::before,
    .service__title,
    .service__link,
    .service__link svg{
        transition:none;
    }
}

/* Advantages */

.advantages{
    position:relative;
    overflow:hidden;
}

.advantages__grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:24px;
}

.advantage-card{
    padding:40px 32px;
}

.advantage-card h3{
    font-size:22px;
    font-weight:600;
    letter-spacing:-.02em;
    margin-bottom:16px;
    overflow-wrap:anywhere;
}

.advantage-card p{
    color:var(--gray);
    line-height:1.75;
    font-size:15.5px;
}

@media (max-width:1200px){
    .advantages__grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media (max-width:576px){
    .advantages__grid{
        grid-template-columns:1fr;
    }
}

/* Process / timeline */

.process{
    position:relative;
    overflow:hidden;
}

.timeline{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:32px;
    position:relative;
    overflow:hidden;
}

.timeline::before{
    content:"";
    position:absolute;
    top:14px;
    left:0;
    right:0;
    height:1px;
    background:linear-gradient(90deg,var(--accent) 0%,rgba(255,255,255,.08) 100%);
    opacity:.5;
    z-index:0;
}

.timeline__item{
    position:relative;
    z-index:1;
    padding-top:48px;
}

.timeline__step{
    position:absolute;
    top:0;
    left:0;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:29px;
    height:29px;
    border-radius:50%;
    background:var(--bg);
    border:1px solid rgba(255,255,255,.12);
    font-size:12px;
    font-weight:600;
    letter-spacing:0;
    color:var(--accent);
    z-index:2;
}

.timeline__item h3{
    font-size:22px;
    font-weight:600;
    letter-spacing:-.02em;
    margin-bottom:14px;
    overflow-wrap:anywhere;
}

.timeline__item p{
    color:var(--gray);
    line-height:1.75;
    font-size:15.5px;
    max-width:26ch;
}

/* Filled part of the line, driven by --progress from process.js */

.timeline::after{
    content:"";
    position:absolute;
    top:14px;
    left:0;
    right:0;
    height:2px;
    margin-top:-.5px;
    background:linear-gradient(90deg,var(--accent) 0%,var(--accent-warm) 100%);
    transform:scaleX(var(--progress, 0));
    transform-origin:left;
    z-index:0;
}

.timeline__step{
    transition:background .45s ease, border-color .45s ease, color .45s ease, box-shadow .45s ease;
}

.timeline__item.is-reached .timeline__step{
    background:var(--accent);
    border-color:var(--accent);
    color:var(--bg);
    box-shadow:0 0 18px rgba(79,140,255,.45);
}

.timeline__item.is-reached:last-child .timeline__step{
    background:var(--accent-warm);
    border-color:var(--accent-warm);
    color:var(--bg);
    box-shadow:0 0 18px rgba(240,164,92,.45);
}

.timeline__item .timeline__result{
    display:block;
    margin-top:20px;
    padding-top:16px;
    border-top:1px solid rgba(255,255,255,.08);
    color:var(--text);
    font-size:15px;
    line-height:1.55;
    max-width:28ch;
}

.timeline__result span{
    display:block;
    margin-bottom:6px;
    color:var(--accent);
    font-size:12px;
    font-weight:600;
    letter-spacing:.16em;
    text-transform:uppercase;
}

.timeline__item:last-child .timeline__result span{
    color:var(--accent-warm);
}

@media (max-width:992px){
    .timeline{
        grid-template-columns:repeat(2,1fr);
        row-gap:56px;
    }
    .timeline::before,
    .timeline::after{
        display:none;
    }
}

@media (max-width:576px){
    .timeline{
        grid-template-columns:1fr;
        row-gap:36px;
        padding-left:48px;
    }
    .timeline::before,
    .timeline::after{
        display:block;
        top:14px;
        bottom:14px;
        left:14px;
        right:auto;
        width:1px;
        height:auto;
        margin:0;
    }
    .timeline::before{
        background:linear-gradient(180deg,var(--accent) 0%,var(--accent-warm) 100%);
    }
    .timeline::after{
        width:2px;
        margin-left:-.5px;
        background:linear-gradient(180deg,var(--accent) 0%,var(--accent-warm) 100%);
        transform:scaleY(var(--progress, 0));
        transform-origin:top;
    }
    .timeline__item{
        padding-top:0;
    }
    .timeline__step{
        left:-48px;
    }
    .timeline__item h3{
        margin-top:2px;
    }
}

@media (prefers-reduced-motion:reduce){
    .timeline__step{
        transition:none;
    }
}

/* CTA */

.cta{
    position:relative;
    overflow:hidden;
    text-align:center;
}

.cta::before{
    content:"";
    position:absolute;
    left:50%;
    top:50%;
    width:70%;
    height:85%;
    max-width:640px;
    max-height:640px;
    transform:translate(-50%,-50%);
    border-radius:50%;
    background:radial-gradient(circle,rgba(79,140,255,.24) 0%,rgba(79,140,255,.06) 45%,transparent 75%);
    filter:blur(90px);
    pointer-events:none;
    animation:ctaGlow 11s ease-in-out infinite;
}

@keyframes ctaGlow{
    0%,100%{ opacity:.65; }
    50%{ opacity:1; }
}

.cta__content{
    position:relative;
    z-index:1;
    max-width:760px;
    margin:0 auto;
}

.cta .section-label{
    display:inline-block;
}

.cta h2{
    margin-top:20px;
    font-size:clamp(36px,4.5vw,58px);
    line-height:1.12;
    letter-spacing:-.03em;
    font-weight:600;
}

.cta p{
    margin-top:28px;
    max-width:520px;
    margin-left:auto;
    margin-right:auto;
    color:var(--gray);
    font-size:18px;
    line-height:1.8;
}

.cta .button{
    margin-top:44px;
}
