:root {
    --main-color: #2086f8;
    --main-color-hover: #2086f8;
    --main-text-color: #0c1e21;
    --secondary-color: #e91e63;
    --secondary-color-hover: #c21652
}

*,:after,:before {
    box-sizing: border-box;
    margin: 0
}

a {
    color: inherit
}

html {
    scroll-behavior: smooth
}

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
    overflow: clip;
}

body {
    color: var(--main-text-color);
    font-family: "Inter", sans-serif;
    font-size: 18px;
    font-weight: 400;
    background: #eaebee;
}

table{
    width: 100%;
    min-width: max-content;
    border-collapse: collapse;
    border-spacing: 0;
}
table tr{

}
table tr th{
    background: #f99529;
    color: white;
    text-align: center;
    padding: 10px 15px!important;
    border: 1px solid #d87203;
}
table tr th p{
    font-weight: bold;
    margin: 0;
}
table tr td{
    background: #f7f7f7;
    text-align: center;
    border: 1px solid #e4e4e4;
}
table tr:nth-child(odd) td{
    background: #fdfdfd;
}
table tr td p{
    margin: 0;
}

.hero-typewriter {
    display: block;
    min-height: 2.6em;
}

.typewriter-caret {
    display: inline-block;
    width: 2px;
    height: 1.15em;
    vertical-align: text-bottom;
    margin-top: 0.08em;
    margin-left: 6px;
    background: currentColor;
    opacity: 1;
    flex-shrink: 0;
}

.hero-btn{
    float: left;
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 5px 5px 5px 25px;
    border-radius: 30px;
    margin-top: 40px;
    background-color: var(--main-color);
    align-self: flex-start;
    text-decoration: none;
    .text{
        font-weight: bold;
    }
    .arrow{
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        line-height: 1;
        width: 42px;
        height: 42px;
        overflow: hidden;
        background-color: #060b12;
        border-radius: 50%;
        font-weight: bold;
        i{
            transform: rotate(-45deg);
        }
    }
}
.container {
    width: min(1320px, 92%);
    margin: 0 auto;
}
header {
    position: absolute;
    width: calc(100% - 60px);
    height: 80px;
    top: 30px;
    left: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    background-color: #ffffff12;
    isolation: isolate;
    padding: 0 30px;
    border-radius: 14px;
    z-index: 80;
    transition: box-shadow .18s ease, transform .26s ease, opacity .26s ease;
    color: #ffffff;

    &.is-sticky{
        position: fixed;
        top: 10px;
        background-color: #ffffff;
        box-shadow: 0 14px 30px #07142b33;
    }

    &.is-entering{
        animation: header-slide-in .26s ease forwards;
    }

    &.is-leaving{
        animation: header-slide-out .26s ease forwards;
    }

    .logo{
        position: relative;
        z-index: 1;
        height: 50px;
        display: grid;
        align-items: center;
        img{
            grid-area: 1 / 1;
            height: 50px;
            display: block;
            opacity: 1;
            visibility: visible;
            transition: opacity .2s ease;
            filter: none;
        }

        .logo-dark-bg{
            opacity: 1;
            pointer-events: auto;
        }

        .logo-light-bg{
            opacity: 0;
            pointer-events: none;
        }
    }
    .menu-toggle{
        position: relative;
        z-index: 1;
        display: none;
        border: none;
        background: transparent;
        width: 42px;
        height: 42px;
        border-radius: 10px;
        margin-left: auto;
        padding: 8px;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        span{
            display: block;
            width: 100%;
            height: 2px;
            border-radius: 20px;
            background: #ffffff;
            transition: transform .24s ease, opacity .2s ease;
        }
    }
    .nav{
        position: relative;
        z-index: 1;
        display: flex;
        gap: 40px;
        margin-left: auto;
        color: #ffffff;
        opacity: 1;
        visibility: visible;
        text-shadow: none;
        .nav-item{
            color: inherit;
            text-decoration: none;
            padding: 20px 0;
        }
    }
}

header.is-resetting{
    transition: none !important;
}

header.is-sticky .logo .logo-dark-bg{
    opacity: 0;
    pointer-events: none;
}

header.is-sticky .logo .logo-light-bg{
    opacity: 1;
    pointer-events: auto;
}

header.is-sticky .nav{
    color: var(--main-text-color);
}

header.is-sticky .menu-toggle span{
    background: var(--main-text-color);
}

header.menu-open{
    background-color: #07142b;
    color: #ffffff;
}

header.menu-open .nav{
    color: #ffffff;
}

header.menu-open .menu-toggle span{
    background: #ffffff;
}

header.menu-open .logo .logo-dark-bg{
    opacity: 1;
    pointer-events: auto;
}

header.menu-open .logo .logo-light-bg{
    opacity: 0;
    pointer-events: none;
}

@keyframes header-slide-in {
    from {
        /*transform: translateY(-120%);*/
        opacity: 0;
    }
    to {
        /*transform: translateY(0);*/
        opacity: 1;
    }
}

@keyframes header-slide-out {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-120%);
        opacity: 0;
    }
}


main {
    section{
        &.hero{
            display: flex;
            align-items: center;

            margin: 15px;
            background: red;
            height: calc(100vh - 30px);
            border-radius: 15px;
            background: linear-gradient(90deg, #000000cf 50%, #00000038), url(./assets/images/hero-bg7.png) center / cover no-repeat;
            color: white;
            h1{
                line-height: 1.2;
                text-transform: uppercase;
                font-size: clamp(1rem, 5vw, 4rem);
            }
            p{
                margin-top: 30px;
                font-size: 18px;
                opacity: 0.8;
            }
            .container{
                padding-top: 95px;
                width: 90%;
            }
        }
        &.partners{
            padding: 120px 0 0 0;
            .container{
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                width: 90%;
            }

            .partners-title{
                color: var(--main-text-color);
                margin-bottom: 60px;

                font-weight: 700;
                border: 1px dashed #cdd5d5;
                border-radius: 30px;
                padding: 5px 20px;
                font-size: 20px;
                span{
                    color: var(--main-color);
                }
                .accent{
                    color: #676f7a;
                }
            }
            .partners-marquee{
                width: 100%;
                --gap: 18px;
                --speed: 30s;
                position: relative;
                display: flex;
                gap: var(--gap);
                overflow: hidden;
                mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
            }
            .partners-track{
                min-width: max-content;
                display: flex;
                gap: var(--gap);
                animation: partners-scroll var(--speed) linear infinite;
            }
            .partner-item{
                flex: 0 0 auto;
                width: 284px;
                height: 120px;
                border-radius: 14px;
                border: 1px solid #e6edf7;
                background: #fff;
                color: #97a5b4;
                font-size: 15px;
                font-weight: 700;
                display: flex;
                align-items: center;
                justify-content: center;
                img{
                    transition: all .2s ease;
                    filter: grayscale(100);
                    max-width: 100%;
                    &:hover{
                        filter: grayscale(0);
                    }
                }
            }
            .partners-marquee:hover .partners-track{
                /*animation-play-state: paused;*/
            }
        }
        &.about{
            padding-top: 120px;
            padding-bottom: 120px;

            .about-content{
                display: grid;
                grid-template: min-content 1fr / 1fr 1fr 1fr;
                grid-gap: 20px;

                .item{
                    border-radius: 10px;
                    padding: 25px;
                    &.about-text{
                        padding: 0 0 20px 50px;
                        grid-column-start: span 2;
                        display: flex;
                        flex-direction: column;
                        justify-content: center;
                        align-items: flex-start;
                        .subtitle{
                            color: var(--main-color);
                            background-color: white;
                            border-radius: 4px;
                            padding: 5px 10px;
                            font-weight: bold;
                            text-transform: uppercase;
                            float: left;
                            margin-bottom: 20px;
                            letter-spacing: 1.4px;
                        }
                        .text{
                            font-size: 30px;
                        }
                    }
                    &.bg-white{
                        background: white;
                    }
                    &.experience-card{
                        padding: 0;
                        min-height: 260px;
                        background-color: #dfe8f3;
                        background-position: center;
                        background-size: cover;
                        background-repeat: no-repeat;
                        overflow: hidden;
                        .top,
                        .card-media{
                            display: none;
                        }
                    }

                    &.info-item{
                        display: flex;
                        flex-direction: column;

                        .step{

                        }
                        .top{
                            display: flex;
                            align-items: center;
                            gap: 20px;
                            .icon{
                                flex-shrink: 0;
                                display: flex;
                                align-items: center;
                                justify-content: center;
                                border-radius: 100%;
                                width: 80px;
                                height: 80px;
                                background: #eaeeee;
                                i{
                                    font-size: 50px;
                                    color: var(--main-color);
                                }
                            }
                            .title{
                                font-size: 26px;
                            }
                        }

                        .value{
                            font-size: 74px;
                            margin: 10px 0;
                            font-weight: 500;
                        }
                        .card-media{
                            margin-top: 14px;
                            border-radius: 12px;
                            overflow: hidden;
                            border: 1px solid #e5edf7;
                            box-shadow: 0 12px 28px #10234114;
                            .experience-image{
                                display: block;
                                width: 100%;
                                height: 230px;
                                object-fit: cover;
                            }
                        }
                        ul{
                            list-style: none;
                            padding-left: 28px;
                            padding-top: 25px;
                            li{
                                display: flex;
                                gap: 20px;
                                align-items: center;
                                margin-bottom: 10px;
                                border-bottom: 1px solid #ededed;
                                padding-bottom: 10px;
                                i{
                                    color: var(--main-color);
                                    font-size: 26px;
                                }
                                &:last-child{
                                    border-bottom: none;
                                }
                            }
                        }
                    }
                    &.bg-blue{
                        background: linear-gradient(rgb(10 22 44 / 73%), rgb(0 0 0 / 90%)), url(assets/images/stats-side-bg.webp) center / cover no-repeat;
                        .top{
                            .icon{
                                background: #ffffff17;
                                i{
                                    color: white;
                                }
                            }
                            .title{
                                color: white;
                            }
                        }
                        p:nth-of-type(1){
                            color: white;
                            padding: 29px 30px 25px;
                        }
                        p:nth-of-type(2){
                            color: white;
                            padding: 29px 30px 0;
                        }
                        ul{
                            li{
                                border-bottom: 1px solid #ffffff0a;
                                color: #cdcdcd;
                                i{
                                    color: white;
                                }
                            }
                        }
                    }
                }
            }
        }
        &.catalogue{
            padding-top: 120px;
            padding-bottom: 120px;
            background: #07142b;
            margin: 15px;
            border-radius: 15px;
            position: relative;
            isolation: isolate;

            &:before{
                content: '';
                position: absolute;
                inset: 0;
                border-radius: inherit;
                background: radial-gradient(720px 720px at 0% 100%, #17366d 0%, rgba(23, 54, 109, 0) 68%);
                pointer-events: none;
                z-index: 0;
            }

            .container{
                display: flex;
                gap: 40px;
                position: relative;
                z-index: 1;
            }
            .left{
                display: flex;
                flex-direction: column;
                max-width: 500px;
                color: white;
                .wrapper{
                    display: flex;
                    flex-direction: column;
                    position: sticky;
                    top: 125px;
                }
                .subtitle{
                    align-self: flex-start;
                    color: var(--main-color);
                    background-color: rgba(255, 255, 255, 0.11);
                    border-radius: 4px;
                    padding: 5px 10px;
                    font-weight: bold;
                    text-transform: uppercase;
                    float: left;
                    margin-bottom: 40px;
                    letter-spacing: 1.4px;
                }
                h1{
                    font-size: 35px;
                }
                p{
                    margin-top: 20px;
                }
            }
            .right{
                color: white;
                display: flex;
                flex-direction: column;
                gap: 40px;
                overflow: hidden;
                .category{
                    display: flex;
                    border: 1px dashed #ffffff24;
                    border-radius: 15px;
                    padding: 50px;
                    > div{

                    }
                    .category-left{
                        display: flex;
                        flex-direction: column;
                        justify-content: center;
                        gap: 30px;
                        width: 300px;
                        flex-shrink: 0;
                        .icon{
                            flex-shrink: 0;
                            display: flex;
                            align-items: center;
                            justify-content: center;
                            border-radius: 100%;
                            width: 80px;
                            height: 80px;
                            background: linear-gradient(-45deg, rgba(30, 77, 138, 0.3) 0%, rgba(30, 138, 138, 0) 50%, rgba(30, 77, 138, 0.3) 100%);
                            i{
                                color: var(--main-color);
                                font-size: 50px;
                            }
                        }
                        .text{
                            font-size: 24px;
                            font-weight: 600;
                            color: white;
                        }
                    }
                    .category-right{
                        display: flex;
                        flex-direction: column;
                        justify-content: center;
                        .text{
                            color: #b8cce3;
                        }
                        ul{
                            list-style: none;
                            padding: 0;
                            margin-top: 20px;
                            display: flex;
                            gap: 5px;
                            flex-direction: column;
                            color: #b8cce3;
                            li{
                                display: flex;
                                align-items: flex-start;
                                gap: 20px;
                                flex-shrink: 0;
                                .bullet{
                                    flex-shrink: 0;
                                    width: 10px;
                                    height: 4px;
                                    margin-top: 10px;
                                    background: #1c6bc3;
                                }
                            }
                        }
                    }
                }
            }
        }
        &.supply{
            padding-top: 120px;
            padding-bottom: 120px;
            .container{
                display: flex;
                gap: 60px;
                .left{
                    display: flex;
                    flex-direction: column;
                    width: 40%;
                    flex-shrink: 0;

                    .tabs{
                        display: flex;
                        color: #ffffff;
                        gap: 10px;
                        border-radius: 15px;
                        margin-bottom: 10px;
                        .tab{
                            cursor: pointer;
                            display: flex;
                            align-items: center;
                            padding: 5px 5px 5px 20px;
                            width: 100%;
                            border-radius: 28px;
                            background: #0000000f;
                            color: #414141;

                            .count{
                                display: flex;
                                align-items: center;
                                justify-content: center;
                                background: #e7e7e7;
                                margin-left: auto;
                                border-radius: 20px;
                                padding: 5px 9px;
                                min-width: 32px;
                                height: 32px;
                                text-align: center;
                                font-size: 14px;
                            }
                            &.active{
                                color: white;
                                background: #07142c;
                                .count{
                                    background: var(--main-color);
                                }
                            }
                        }
                    }
                    .tab-content{
                        display: flex;
                        flex-direction: column;
                        height: 100%;
                        border-radius: 15px;
                        background: linear-gradient(140deg, #07142b 0%, #0d1e3d 45%, #122a51 100%);
                        padding: 16px;
                        gap: 12px;
                        box-shadow: inset 0 1px 0 #ffffff0f, 0 18px 34px #07142b21;
                        transition: opacity .2s ease, transform .2s ease;
                        &.is-switching{
                            opacity: .65;
                            transform: translateY(4px);
                        }
                        .item{
                            display: flex;
                            flex-direction: column;
                            justify-content: flex-start;
                            color: white;
                            border-radius: 12px;
                            padding: 18px;
                            background: linear-gradient(135deg, #ffffff10 0%, #ffffff04 100%);
                            transition: border-color .2s ease, background .2s ease, transform .2s ease;
                            &:hover{
                                border-color: #3c82d1;
                                background: linear-gradient(135deg, #ffffff14 0%, #ffffff08 100%);
                            }
                            .category{
                                align-self: flex-start;
                                color: white;
                                font-weight: 700;
                                float: left;
                                margin-bottom: 7px;
                                letter-spacing: 1.1px;
                                font-size: 12px;
                                border-radius: 6px;
                                padding: 4px 10px;
                                background: #2086f833;
                            }
                            ul{
                                color: #dae8f7;
                                padding: 0;
                                list-style: none;
                                font-size: 14px;
                                display: grid;
                                grid-template-columns: repeat(2, minmax(0, 1fr));
                                column-gap: 14px;
                                row-gap: 6px;
                                li{
                                    margin-bottom: 0;
                                    display: flex;
                                    align-items: flex-start;
                                    gap: 9px;
                                    line-height: 1.35;
                                    &:before{
                                        content: '';
                                        width: 6px;
                                        height: 6px;
                                        margin-top: 7px;
                                        border-radius: 50%;
                                        flex-shrink: 0;
                                        background: #5ea6ff;
                                        box-shadow: 0 0 0 3px #5ea6ff26;
                                    }
                                }

                            }
                        }
                    }
                }
                .right{
                    > .title{
                        font-weight: bold;
                        font-size: 40px;
                        span{
                            color: var(--main-color);
                        }
                    }
                    > .subtitle{
                        margin-top: 10px;
                        font-size: 25px;
                    }
                    .metrics{
                        margin-top: 40px;
                        display: flex;
                        gap: 20px;
                        .item{
                            width: 50%;
                            flex-shrink: 0;
                            padding: 40px;
                            background: white;
                            border-radius: 10px;
                            .icon{
                                i{
                                    font-size: 50px;
                                    color: var(--main-color);
                                }
                            }
                            .title{
                                font-size: 23px;
                                font-weight: 600;
                                margin-top: 30px;
                                margin-bottom: 15px;
                            }
                            .subtitle{
                                span{
                                    color: var(--main-color);
                                    font-weight: bold;
                                }
                            }
                        }

                    }
                    p{
                        padding: 40px 0 0;
                    }
                }
            }
        }
        &.sigma{
            padding-top: 120px;
            padding-bottom: 120px;
            background: white;
            margin: 15px;
            border-radius: 15px;
            position: relative;
            isolation: isolate;
            overflow: hidden;
            .container{
                display: flex;
                flex-direction: column;
            }
            .row{
                display: flex;
                gap: 60px;
                .left{
                    font-weight: bold;
                    font-size: 40px;
                    span{
                        opacity: .3;
                    }
                }
                .right{
                    display: flex;
                    align-items: center;
                    font-size: 16px;
                    max-width: 495px;
                }
                .hero-btn{
                    margin-top: auto;
                    margin-bottom: auto;
                    flex-shrink: 0;
                    color: white;
                }
            }
            .items{
                display: flex;
                gap: 40px;
                margin-top: 40px;
                .item{
                    background: #f0f1f3;
                    padding: 25px;
                    border-radius: 15px;
                    flex-grow: 1;
                    width: 25%;
                    display: flex;
                    align-items: center;
                    gap: 20px;
                    .icon{
                        height: 80px;
                        width: 80px;
                        background: white;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        border-radius: 100%;
                        font-size: 26px;
                        flex-shrink: 0;
                        i{
                            color: var(--main-color);
                            font-size: 50px;
                        }
                    }
                }
            }
        }
        &.letters {
            padding-top: 120px;
            padding-bottom: 120px;
            .container{
                display: flex;
                flex-direction: column;
            }
            .letters__title {
                font-weight: bold;
                font-size: 40px;
                text-align: center;
                margin-bottom: 40px;
            }

            .letters__lead {
                margin: 0 0 20px;
                color: #373737;
                text-align: center;
            }

            .letters__grid {
                display: grid;
                grid-template-columns: repeat(6, minmax(0, 1fr));
                gap: 14px;
                margin-top: 40px;
            }

            .letter-card {
                background: white;
                padding: 12px;
                border-radius: 15px;

                h3 {
                    margin: 8px 0 0;
                    font-size: 0.92rem;
                    text-align: center;
                    font-weight: 600;
                    min-height: 17px;
                }
            }

            .letter-card__paper {
                display: block;
                text-decoration: none;
                color: inherit;
                background: #ffffff;
                border-radius: 10px;
                aspect-ratio: 0.72;
                position: relative;
                overflow: hidden;
                cursor: zoom-in;
                transition: transform 0.25s ease, box-shadow 0.25s ease;

                img {
                    width: 100%;
                    height: 100%;
                    object-fit: contain;
                    background: #fff;
                    display: block;
                    transition: transform 0.25s ease;
                }

                &::after {
                    content: "Открыть";
                    position: absolute;
                    left: 50%;
                    top: 50%;
                    transform: translate(-50%, -50%);
                    border-radius: 999px;
                    padding: 8px 14px;
                    font-size: 0.78rem;
                    font-weight: 700;
                    color: #fff;
                    background: rgba(17, 32, 56, 0.7);
                    opacity: 0;
                    transition: opacity 0.2s ease;
                }

                &:hover,
                &:focus-visible {
                    transform: translateY(-2px);
                    box-shadow: 0 14px 26px rgba(20, 35, 60, 0.22);
                }

                &:hover img,
                &:focus-visible img {
                    transform: scale(1.03);
                }

                &:hover::after,
                &:focus-visible::after {
                    opacity: 1;
                }
            }
        }
        &.contacts-catalogue{
            padding-top: 90px;
            padding-bottom: 90px;
            background: #07142b;
            margin: 15px;
            border-radius: 15px;
            position: relative;
            isolation: isolate;

            &:before{
                content: '';
                position: absolute;
                inset: 0;
                border-radius: inherit;
                background: radial-gradient(650px 650px at 100% 0%, #17366d 0%, rgba(23, 54, 109, 0) 66%);
                pointer-events: none;
                z-index: 0;
            }

            .container{
                display: flex;
                gap: 56px;
                position: relative;
                z-index: 1;
            }

            .left{
                max-width: 50%;
                color: white;
                .wrapper{
                    position: static;
                    display: flex;
                    flex-direction: column;
                }
                .subtitle{
                    align-self: flex-start;
                    color: var(--main-color);
                    background-color: rgba(255, 255, 255, 0.11);
                    border-radius: 4px;
                    padding: 5px 10px;
                    font-weight: bold;
                    text-transform: uppercase;
                    float: left;
                    margin-bottom: 40px;
                    letter-spacing: 1.4px;
                }
                h1{
                    font-size: 35px;
                    line-height: 1.2;
                }
                p{
                    margin-top: 14px;
                    color: #b8cce3;
                    font-size: 15px;
                }
            }

            .right{
                flex: 1;
                display: flex;
                flex-direction: column;
                justify-content: center;
                gap: 10px;
                border-radius: 20px;
                margin-top: 64px;
            }

            .contact-card{
                display: flex;
                align-items: center;
                gap: 22px;
                color: white;
                background: #183a6621;
                border-radius: 10px;
                padding: 5px;

                .contact-card-left{
                    width: 142px;
                    flex-shrink: 0;
                    display: flex;
                    align-items: center;
                    gap: 5px;
                    background: #ffffff05;
                    padding: 0 5px;
                    border-radius: 5px;

                    .icon{
                        width: 36px;
                        height: 36px;
                        border-radius: 100%;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        i{
                            color: var(--main-color);
                            font-size: 18px;
                        }
                    }
                    .text{
                        font-size: 15px;
                        font-weight: 500;
                        color: #9fb3ca;
                    }
                }

                .contact-card-right{
                    color: #d7e5f4;
                    font-size: 16px;
                    a{
                        color: #d7e5f4;
                        text-decoration: none;
                        &:hover{
                            color: #ffffff;
                        }
                    }
                }
            }

        }
    }
    footer{
        font-size: 14px;
        color: #454545;
        .container{
            display: flex;
            padding: 20px 0 30px;
            .right{
                margin-left: auto;
                a{
                    text-decoration: none;
                }
            }
        }
    }
}

@keyframes partners-scroll{
    from{
        transform: translateX(0);
    }
    to{
        transform: translateX(calc(-100% - 18px));
    }
}
