ul, li {
    padding: 0;
    margin: 0;
    text-decoration: none;
}
#work-plans {
    padding: 0;
    margin: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
#work-plans .plans {
    padding-top: 50px;
    display: flex;
    
    align-items: center;
    justify-content: center;
    gap: 0px;
    
    margin: 0 auto;
    flex-wrap: wrap;

    position: relative; /* для всплывающего окна */
}
#work-plans #plan-econom {
    position: relative;
    text-align: center;
    margin: 50px 80px;
    width: 200px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background-color: #212529;
    border: solid 1px #212529;
    box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.2);
    transition: 0.2s;
    cursor: pointer;
        & .plan-name {
            box-shadow: 0 2px 5px 0 rgb(0, 81, 255);
            background-color: rgb(0, 81, 255);
        }
        & .left-flag {
            border-color: rgb(0, 81, 255) rgb(0, 81, 255) transparent;
        }
        & .right-flag {
            border-color: rgb(0, 81, 255) rgb(0, 81, 255) transparent;
        }
}

#work-plans #plan-standart {
    position: relative;
    text-align: center;
    margin: 50px 80px;
    width: 200px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background-color: #212529;
    border: solid 2px #212529;
    transition: 0.2s;
    cursor: pointer;
        & .plan-name {
            box-shadow: 0 2px 5px 0 rgb(161, 0, 100);
            background-color: rgb(161, 0, 100);
        }
        & .left-flag {
            border-color: rgb(161, 0, 100) rgb(161, 0, 100) transparent;
        }
        & .right-flag {
            border-color: rgb(161, 0, 100) rgb(161, 0, 100) transparent;
        }
}
#work-plans .plan-img {
    pointer-events: none; /* Клики будут передаваться родителю */
    opacity: 0.2;
}
#work-plans .plan-name {
    pointer-events: none; /* Клики будут передаваться родителю */
}
#work-plans #plan-premium {
    position: relative;
    text-align: center;
    margin: 50px 80px;
    width: 230px;
    height: 350px;
    border: solid 1px #212529;
    background-color: #212529;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    transition: 0.2s;
    cursor: pointer;
        & .plan-name {
            box-shadow: 0 2px 5px 0 rgba(70, 0, 136, 1);
            background-color: rgba(70, 0, 136, 1);
        }
        & .left-flag {
            border-color: rgba(70, 0, 136, 1) rgba(70, 0, 136, 1) transparent;
        }
        & .right-flag {
            border-color: rgba(70, 0, 136, 1) rgba(70, 0, 136, 1) transparent;
        }
}
#work-plans .plan-name {
    position: absolute;
    bottom: 30px;
    width: 104%;
    height: 30px;
    
    color: var(--textColorLight1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.5 );

}
#work-plans .plans li {
    list-style: initial;
}
#work-plans .left-flag {
    position: absolute;
    bottom: 15px;
    left: -38px;
    width: 0; 
    height: 0;
    border-top-right-radius: 5px;
    border-width: 20px 15px 20px;
    border-style: solid;
    border-color: var(--color3) var(--color3) transparent;
    transform: rotate(90deg);
    z-index: 1;
    
}
#work-plans .right-flag {
    position: absolute;
    bottom: 15px;
    right: -38px;
    width: 0; 
    height: 0;
    border-top-left-radius: 5px;
    border-width: 20px 15px 20px;
    border-style: solid;
    border-color: var(--color3) var(--color3) transparent;
    transform: rotate(-90deg);
    z-index: 1;
}
#work-plans .plan-details {
    color: white;
    position: absolute;
    top: 10px;
    right: 20px;
}



/*@media screen and (max-width: 1200px) {
    #work-plans .plan-econom,
    #work-plans .plan-standart,
    #work-plans .plan-premium {
        width: 200px;
        height: 300px;
    }
}

@media screen and (max-width: 360px) {
    #work-plans .plan-econom,
    #work-plans .plan-standart,
    #work-plans .plan-premium {
        width: 120px;
        height: 180px;
        min-width: 120px;
    }
    #work-plans li {
        font-size: 10px;
    }
    #work-plans .plan-name {
        font-size: 12px;
    }
}*/






/*--- border animation START ---*/

#work-plans #plan-premium::after, #work-plans #plan-premium::before {
    --angle: 0deg;
    position: absolute;
    content: '';
    top: 50%;
    left: 50%;
    z-index: -1;
    transform: translate(-50%,-50%);
    width: 234px;
    height: 354px;
    background-image: conic-gradient(from var(--angle), red, orange, yellow, green, #00bfff, blue, #ff0095);
    border-radius: 15px;
    animation: border-animation;
    padding: 50px;
    animation: 5s border-animation linear infinite;
}
#work-plans #plan-premium::before {
    filter: blur(1.5rem);
    opacity: 1;
}
#work-plans #plan-standart::after, #work-plans #plan-standart::before {
    --angle: 0deg;
    position: absolute;
    content: '';
    top: 50%;
    left: 50%;
    z-index: -1;
    transform: translate(-50%,-50%);
    width: 200px;
    height: 300px;
    background-image: conic-gradient(from var(--angle), rgb(74, 0, 143), rgb(255, 0, 119), rgb(74, 0, 143));
    border-radius: 15px;
    animation: border-animation;
    padding: 50px;
    animation: 10s border-animation linear infinite;
}
#work-plans #plan-standart::before {
    filter: blur(2rem);
    opacity: 1;
}





#work-plans #plan-econom::after, #work-plans #plan-econom::before {
    --angle: 0deg;
    position: absolute;
    content: '';
    top: 50%;
    left: 50%;
    z-index: -1;
    transform: translate(-50%,-50%);
    width: 200px;
    height: 300px;
    background-image: conic-gradient(from var(--angle), rgb(0, 12, 177), rgb(0, 183, 255), rgb(0, 12, 177));
    border-radius: 15px;
    animation: border-animation;
    padding: 50px;
    animation: 10s border-animation linear infinite;
}
#work-plans #plan-econom::before {
    filter: blur(2rem);
    opacity: 1;
}



@property --angle{
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}
@keyframes border-animation {
    0% {
        --angle: 0deg;
    }

    100% {
        --angle: 360deg;
        }


}



/*--- border animation END ---*/

/* ----- Всплывающие окна START ----- */
#work-plans #pop {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 90%;
    max-height: 51vh;
    border-radius: 15px;
    border: solid 1px rgba(255, 255, 255, 0.1);
    background-color: rgba(33, 37, 41, 0.8);
    display: none;
    z-index: 2;
    backdrop-filter: blur(10px);
    cursor: default;
    color: white;
    overflow: hidden;
}

#work-plans .premium {
    background-color: rgba(70, 0, 136, 0.3);
}
#work-plans .standart {
    background-color: rgba(161, 0, 100, 0.3)
}
#work-plans .econom {
    background-color: rgba(0, 81, 255, 0.3);
}
#work-plans #pop-header-wrapper {
    display: flex;
    border-bottom: solid 1px rgba(255, 255, 255, 0.1);
    position: relative;
    justify-content: flex-end;
    align-items: center;
    height: 50px;
}
#pop-header-standart, #pop-header-premium, #pop-header-econom {
    display: none;
    align-items: center;
    justify-content: center;
    height: 50px;
    width: 100%;
    width: 95%;
    text-transform: uppercase;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}
#pop-content-standart, #pop-content-premium, #pop-content-econom {
    display: none;
    padding: 30px;
    /*min-height: 15rem;*/
    max-height: calc(51vh - 102px);

    overflow-y: auto; /* Разрешаем скролл внутри контента */
    touch-action: pan-y; /* Разрешаем вертикальные жесты */
}
#work-plans #pop-footer-wrapper {
    display: flex;
    border-top: solid 1px rgba(255, 255, 255, 0.1);
    justify-content: center;
    align-items: center;
    position: sticky;
    bottom: 0;
    height: 50px;
    }
#work-plans #pop-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: none;
    cursor: pointer;
    opacity: 0.5;
}
#plans-article {
    padding-top: 20px;
    padding-bottom: 80px;
}
.pop-content-span {
    background-color: white;
    color: black;
    padding: 3px 5px;
    border-radius: 5px;
    opacity: 0.6;
    margin-left: 3px;
}
}
.main-place-order {
    display: none;
}
/* ----- Всплывающие окна END ----- */



@media screen and (max-width:1200px) {
    #work-plans .plans {
        flex-direction: column;
        position: initial; /* для всплывающего окна */
    }
    #work-plans #plan-premium {
        margin: 50px 0;
    }
    #work-plans #plan-standart {
        height: 350px;
        width: 230px;
        margin: 50px 0;
    }
    #work-plans #plan-econom {
        height: 350px;
        width: 230px;
        margin: 50px 0;
    }
    #work-plans #plan-standart::after, #work-plans #plan-standart::before {
        height: 354px;
        width: 234px;
    }
    #work-plans #plan-econom::after, #work-plans #plan-econom::before {
        height: 354px;
        width: 234px;
    }
    
    #pop {
        position: fixed !important;
        top: 50% !important;
        min-height: unset !important;
        max-height: 60vh !important;
    }
    #pop-content-standart, #pop-content-premium, #pop-content-econom {
        overflow-y: auto; /* Разрешаем скролл внутри контента */
        touch-action: pan-y; /* Разрешаем вертикальные жесты */
        max-height: calc(60vh - 102px); /* 60vh - (header + footer + 2*border:1px) */
        
    }
    .no-scroll {
        overflow: hidden; /*отключать скролл, когда всплывающее окно #pop открыто*/
        touch-action: none;
    }
}
@media screen and (max-width:991px) {
    .main-place-order {
    display: block;
    }
    #plans-article {
    padding-bottom: 150px;
    }
}