.telegram-stack {
    position: relative;
    padding: 50px 0;
    background: #ffffff;
}

.telegram-stack-header {
    position: sticky;
    top: 120px;
    /* 
    max-width: 430px; */
    padding-top: 60px;
}

.telegram-stack-header>span {
    display: inline-flex;
    align-items: center;
    padding: 7px 17px;
    border-radius: 50px;
    border: 1px solid #000000;
    color: #000000;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.telegram-stack-header h2 {
    margin: 22px 0 0;
    color: #000000;
    font-size: 42px;
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -1.5px;
    font-family: "Playfair Display", serif;
}

.telegram-stack-header h2 strong {
    color: #bd9b00;
    font-weight: 500;
}

.telegram-stack-header>p {
    max-width: 400px;
    margin: 25px 0 0;
    color: #626262;
    font-size: 17px;
    line-height: 1.8;
}

.telegram-stack .scroll-indicator {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 55px;
    color: #777;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.telegram-stack .scroll-line {
    position: relative;
    width: 45px;
    height: 1px;
    background: #02733a;
}


.telegram-stack .scroll-line::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #c1a215;
}

.telegram-stack .stack-cards {
    position: relative;
}

.telegram-stack .stack-card {
    position: sticky;
    width: 100%;
    /* height: 420px; */
    height: 450px;
    /* margin-bottom: 80px; */
    margin-bottom: 50px;
    padding: 45px 50px;
    border-radius: 32px;
    overflow: hidden;
    border-left: 2px solid #edd8bd;
    box-shadow:
        -10px -10px 15px rgba(255, 255, 255, 0.5),
        10px 10px 15px rgba(70, 70, 70, 0.12);
}

.telegram-stack .stack-card-1 {
    top: 100px;
    z-index: 1;
    background: linear-gradient(90deg, rgb(0 0 0) 0%, rgb(0 0 0) 50%, rgb(92 92 92) 100%);
}

.telegram-stack .stack-card-2 {
    top: 125px;
    z-index: 2;
    background: linear-gradient(90deg, rgb(0 0 0) 0%, rgb(0 0 0) 50%, rgb(92 92 92) 100%);
}

.telegram-stack .stack-card-3 {
    top: 150px;
    z-index: 3;
    background: linear-gradient(90deg, rgb(0 0 0) 0%, rgb(0 0 0) 50%, rgb(92 92 92) 100%);
}


.telegram-stack .stack-card-top {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.telegram-stack .stack-card-number {
    width: 82px;
    height: 50px;
    border-radius: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid rgba(2, 115, 58, .18);
    color: #000000;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .06);
}

.telegram-stack .step-label {
    color: #ffda31;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}


.telegram-stack .stack-card-content {
    position: relative;
    z-index: 5;
    max-width: 600px;
    margin-top: 60px;
}

.telegram-stack .stack-card-content h3 {
    margin: 0 0 18px;
    color: #ffda31;
    font-size: clamp(28px, 3vw, 30px);
    line-height: 1.15;
    font-weight: 500;
}


.telegram-stack .stack-card-content p {
    max-width: 570px;
    margin: 0;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 8px;
}


.telegram-stack .stack-card-footer {
    position: absolute;
    z-index: 5;
    left: 50px;
    right: 50px;
    bottom: 35px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffda31;
    font-size: 14px;
    font-weight: 700;
}

.telegram-stack .footer-line {
    width: 80px;
    height: 1px;
    background: #ffda31;
}

.telegram-stack .stack-card-decoration {
    position: absolute;
    width: 380px;
    height: 380px;
    right: -160px;
    bottom: -180px;
    border-radius: 50%;
    border: 2px solid rgb(255 255 255);
}

.telegram-stack .stack-card-decoration::before {
    content: "";
    position: absolute;
    inset: 45px;
    border-radius: 50%;
    border: 150px solid rgb(255 218 49);
}

.telegram-stack .stack-card-decoration::after {
    content: "";
    position: absolute;
    width: 45px;
    height: 45px;
    left: 70px;
    top: 61px;
    border-radius: 50%;
    background: #ffffff96;
}


.telegram-stack .stack-card-3 .stack-card-number {
    background: rgba(255, 255, 255, .10);
    border-color: rgb(255 218 49);
    color: #ffda31;
}

.telegram-stack .stack-card-3 .step-label {
    color: #ffda31;
}

.telegram-stack .stack-card-3 .stack-card-content h3 {
    color: #ffffff;
}


.telegram-stack .stack-card-3 .stack-card-content p {
    color: #d6e2d8;
}

.telegram-stack .stack-card-3 .stack-card-footer {
    color: #ffda31;
}


.telegram-stack .stack-card-3 .footer-line {
    background: rgb(255 218 49);
}


.telegram-stack .stack-card-3 .stack-card-decoration {
    border-color: rgb(255 218 49);
}


.telegram-stack .stack-card-3 .stack-card-decoration::before {
    border-color: rgb(255 255 255);
}


.telegram-stack .stack-card-3 .stack-card-decoration::after {
    background: #ffda31;
}


@media (max-width: 991px) {

    .telegram-stack {
        padding: 80px 0 100px;
    }

    .telegram-stack-layout {
        grid-template-columns: 1fr;

        gap: 60px;
    }


    .telegram-stack-header {
        position: relative;
        top: auto;
        max-width: 700px;
        padding-top: 0;
        margin: auto;
        text-align: center;
    }

    .telegram-stack-header>p {
        margin-left: auto;
        margin-right: auto;
    }

    .telegram-stack .scroll-indicator {
        justify-content: center;
    }

    .telegram-stack .stack-cards {
        min-height: 1800px;
        max-width: 700px;
        margin: auto;
    }

    .telegram-stack .stack-card {
        height: 390px;
    }

    .telegram-stack .stack-card-number {
        width: 128px;
        height: 45px;
        font-size: 20px;
        border-radius: 5%;
    }
}


@media (max-width: 600px) {

    .telegram-stack {
        padding: 65px 0 90px;
    }


    .telegram-stack-header h2 {
        font-size: 32px;
        letter-spacing: -.5px;
    }


    .telegram-stack-header>p {
        font-size: 15px;
    }


    .telegram-stack .scroll-indicator {
        margin-top: 35px;
    }


    .telegram-stack .stack-cards {
        min-height: 1600px;
        padding: 0 15px;
    }


    .telegram-stack .stack-card {
        height: 420px;
        margin-bottom: 50px;
        padding: 30px 25px;
        border-radius: 25px;
    }

    .telegram-stack .stack-card-1 {
        top: 70px;
    }

    .telegram-stack .stack-card-2 {
        top: 90px;
    }


    .telegram-stack .stack-card-3 {
        top: 110px;
    }

    .telegram-stack .stack-card-number {
        width: 65px;
        height: 65px;
        font-size: 20px;
    }


    .telegram-stack .step-label {
        font-size: 9px;
    }


    .telegram-stack .stack-card-content {
        margin-top: 55px;
    }


    .telegram-stack .stack-card-content h3 {
        font-size: 25px;
    }


    .telegram-stack .stack-card-content p {
        font-size: 14px;

        line-height: 1.7;
    }


    .telegram-stack .stack-card-footer {
        left: 25px;
        right: 25px;
        bottom: 25px;
    }


    .telegram-stack .stack-card-decoration {
        width: 280px;
        height: 280px;
        right: -140px;
        bottom: -140px;
    }

    .telegram-stack .stack-card-number {
        width: 128px;
        height: 45px;
        font-size: 20px;
        border-radius: 5%;
    }
}


@media (min-width:1200px) and (max-width:1399px) {
    .telegram-stack-header>span {
        padding: 5px 8px;
        border-radius: 5px;
        font-weight: 500;
    }

    .telegram-stack-header h2 {
        font-size: 35px;
    }

    .telegram-stack-header>p {
        font-size: 15px;
    }

    .telegram-stack .stack-card-number {
        width: 79px;
        height: 40px;
        font-size: 14px;
    }

    .telegram-stack .stack-card-content h3 {
        font-size: clamp(28px, 3vw, 25px);
    }

    .telegram-stack .stack-card-content {
        margin-top: 45px;
    }

    .telegram-stack .stack-card-content p {
        max-width: 400px;
        font-size: 14px;
        line-height: 1.6;
    }

    .telegram-stack .stack-card {
        height: 400px;
    }
}

@media (min-width:1901px) and (max-width:3000px) {
    .telegram-stack-header h2 {
        font-size: 52px;
    }

    .telegram-stack-header>p {
        max-width: 462px;
        color: #383737;
        font-size: 20px;
    }

    .telegram-stack .stack-card-number {
        width: 90px;
        height: 55px;
        font-size: 20px;
    }

    .telegram-stack .stack-card-content h3 {
        font-size: 40px;
    }

    .telegram-stack .stack-card-content p {
        font-size: 20px;
    }

    .telegram-stack .step-label {
        font-size: 15px;
    }

    .telegram-stack .stack-card-footer {
        font-size: 16px;
    }

    .telegram-stack .stack-card {
        height: 500px;
    }
}