.tarif {
    background-color: var(--pink);
    padding: 10rem 0;
    overflow: hidden;
}

.tarif__title {
    text-align: center;
    text-wrap: balance;
    margin-bottom: 3rem;
}

.tarif__description {
    width: 44.4rem;
    background-color: #fff;
    padding: 1.5rem 3.4rem;
    text-align: left;
    margin: 0 auto 3rem auto;
    font-size: 1.6rem;
    position: relative;
}

.tarif__description em {
    color: var(--violet);
    font-weight: 700;
}

.tarif__description::after {
    content: '';
    position: absolute;
    border: 2rem solid transparent;
    border-top: 2rem solid #fff;
    bottom: -3.5rem;
    left: 50%;
    transform: translateX(-50%);
}

.tarif-swiper {
    margin-bottom: 3rem;
    overflow: visible;
}

.tarif-swiper .swiper-wrapper {
    align-items: stretch;
}

.tarif-swiper .swiper-slide {
    height: auto;
}

.tarif__newitem {
    height: 100%;
    background-color: #fff;
    border: 1px solid var(--violet);
    border-radius: .5rem;
    width: 26rem;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.tarif__newname {
    padding: 2.4rem 2rem 0 2rem;
    margin-bottom: 2rem;
    color: var(--violet);
    font-weight: 700;
    font-style: normal;
    font-size: 2rem;
    text-align: center;
}

.tarif__line {
    padding: 1rem;
    background-color: var(--pink);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.4rem;
    font-style: italic;
    font-weight: 400;
    margin-bottom: 1.5rem;
    text-align: center;
    text-wrap: balance;
}

.tarif__line span {
    width: fit-content;
    max-width: 15rem;
}

.tarif__line::before {
    content: '';
    display: block;
    width: 2rem;
    height: 2rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

}

.tarif__line_users::before {
    background-image: url(../img/new/tarif1.svg);
}

.tarif__line_files::before {
    background-image: url(../img/new/tarif2.svg);
}

.tarif__line_managers::before {
    background-image: url(../img/new/tarif3.svg);
}

.tarif__price {
    display: flex;
    align-items: center;
    flex-direction: column;
    color: var(--violet);
    font-weight: 500;
    font-size: 1.8rem;
    padding: .5rem 2rem 2rem;
    text-align: center;
    margin-top: auto;
}

.tarif__price .year {
    font-weight: 700;
}

.tarif__btn {
    margin: 0 auto 2rem;
}

.tarif__subtitle {
    color: var(--violet);
    font-size: 3.2rem;
    text-align: center;
    margin-bottom: 3rem;
    font-style: italic;
    font-weight: 700;
}

.tarif__subtext {
    max-width: 59.6rem;
    text-align: center;
    text-wrap: balance;
    margin: 0 auto 3rem auto;
}

.tarif__btns {
    display: flex;
    align-items: center;
    gap: 1.7rem;
    justify-content: center;
}
.tarif-swiper__btns {
    display: flex;
    align-items: center;
    gap: 1.7rem;
    justify-content: end;
}


.tarif-swiper .swiper-pagination {
    display: none;
}

@media (max-width: 640px) {
    .tarif {
        padding: 5rem 0;
    }

    .tarif__title {
        margin-bottom: 2rem;
    }

    .tarif__description {
        width: 100%;
        padding: 1rem 2rem;
        margin: 0 auto 2rem auto;
        font-size: 1.4rem;
    }

    .tarif__description::after {
        bottom: -2.5rem;
    }


    .tarif__newitem {
        width: 100%;
        flex-shrink: 0;
    }

    .tarif__subtitle {
        font-size: 2.6rem;
    }

    .tarif__subtext {
        max-width: 100%;
    }

    .tarif__btns {
        flex-direction: column;
        align-items: stretch;
        gap: 1.7rem;
    }

    .tarif__btns .main-btn {
        width: 100%;
        text-align: center;
    }

    .tarif-swiper .swiper-pagination {
        display: flex;
        position: static;
        margin-top: 3rem;
        justify-content: center;
    }

    .tarif-swiper__btns {
        display: none;
    }

}

#hidden-price {
    opacity: 0;
    visibility: hidden;
    z-index: -1;
    height: 0;
    padding: 0;
    scroll-margin: 10rem;
    transition: all .3s ease-in-out;
}

#hidden-price.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
    height: auto;
}

@media(max-width: 640px) {
    #hidden-price {
        scroll-margin: 5rem;
    }
}