@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@200;300;400;500;600;800&display=swap');

.tariffs {
    background: #FCFCFF;
    border-radius: 18px;
    padding: 34px 40px 68px;
    max-width: 1044px;
}

.tariffs p {
    color: #5E629B;
    font-family: Exo 2;
    margin: 0;
}


.tariffs-mobile__item .tariffs__caption {
    height: 46px;
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
}

.tariffs__plans {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
}

.tariffs__box {
    display: flex;
}

.tariffs__logo {
    margin-right: 27px;
}

p.tariffs__title {
    font-family: Exo 2;
    font-weight: 600;
    font-size: 29px;
    line-height: 35px;
    text-transform: uppercase;
    color: #303466;
    margin-bottom: 8px;
}

p.tariffs__heading {
    font-style: normal;
    font-weight: 500;
    font-size: 20px;
    line-height: 24px;
    color: #5E629B;
    margin-top: 8px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 186px;
    height: 38px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #FFFFFF;
    -webkit-transition: .4s;
    transition: .4s;
    font-size: 11px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 38px;
    width: 93px;
    background: #5E629B;
    z-index: -1;
    box-shadow: 0px 5px 7px rgba(82, 67, 194, 0.230196);
    border-radius: 22px;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider {
    background: #FFFFFF;

}

input:checked+.slider span {
    color: #FFFFFF;
}

input:checked+.slider .month {
    color: #303466;
}

input:focus+.slider {
    box-shadow: 0px 0px 11px rgba(48, 52, 102, 0.1);
}

input:checked+.slider:before {
    -webkit-transform: translateX(92px);
    -ms-transform: translateX(92px);
    transform: translateX(92px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 9px 12px 24px rgba(82, 67, 194, 0.12);
}

.month {
    position: relative;
    left: 23px;
    color: #FFFFFF;
}

.year {
    position: relative;
    right: 36px;
    color: #303466;
}

.plans__item {
    font-weight: 600;
    font-size: 11px;
    line-height: 13px;
    text-align: center;
    letter-spacing: 0.833333px;
    text-transform: uppercase;
    color: #303466;
    padding: 13px 36px 13px 34px;
}

.plans__item_active {
    color: #FFFFFF;
    padding: 13px 26px;
    background: #5E629B;
    box-shadow: 0px 5px 7px rgba(82, 67, 194, 0.230196);
    border-radius: 22px;
}

.plans__item_active:hover {
    color: #FFFFFF;
}

.plans__item:hover {
    text-decoration: none;
}

.tariffs__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    margin-top: 56px;
}

.tariffs__decs {
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 17px;
    color: #5E629B;
}

.tariffs__decs {
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 17px;
}

.tariffs__decs:not(:last-of-type) {
    margin-bottom: 19px;
}

.tariffs__characterisic {
    display: flex;
    flex-direction: column;
    padding-right: 38px;
    padding-top: 154px;
}

.tariffs__item:nth-child(1) {
    background: #FFFFFF;
    box-shadow: 9px 12px 24px rgba(82, 67, 194, 0.12);
    border-radius: 26px;
}

.tariffs__characterisic-item {
    margin-bottom: 47px;
}

.tariffs__caption {
    font-style: normal;
    font-weight: 500;
    font-size: 17px;
    line-height: 23px;
    color: #848199;
    padding-top: 53px;
    text-align: center;
}

.tariffs__caption span {
    font-weight: 800;
    font-size: 27px;
    line-height: 46px;
    color: #303466;
}

p.tariffs__subtitle {
    font-weight: 800;
    font-size: 14px;
    line-height: 17px;
    color: #5E629B;
    text-align: center;
    margin-bottom: 44px;
}

.tariffs__text {
    font-weight: 600;
    font-size: 17px;
    line-height: 20px;
    color: #5E629B;
    text-align: center;
}

.tariffs__block img {
    position: relative;
    top: 1px;
}

div.tariffs__item:nth-child(2)>div:nth-child(4)>p:nth-child(7) {
    position: relative;
    top: 5px;
}

.tariffs__block:last-of-type .tariffs__text:last-of-type img {
    top: 0;
    margin-top: 14px;
}

.tariffs__text:not(:last-of-type) {
    margin-bottom: 15px;
}

.tariffs__block:not(:last-of-type) {
    margin-bottom: 48px;
}

.tariffs__link {
    margin-top: 49px;
    mix-blend-mode: normal;
    border-radius: 57px;
    font-weight: 600;
    font-size: 14px;
    line-height: 17px;
    text-align: center;
    width: 130px;
    padding: 14px 0;
    display: block;
    border: none;
}

.tariffs__link_current {
    color: #EA6089;
    border: 2px solid rgba(234, 96, 137, 0.4);
    background: #ffffff;
}

.tariffs__link_current:hover,
.tariffs__link_current:active,
.tariffs__link_current:focus {
    color: #EA6089;
}

.tariffs__link:hover {
    text-decoration: none;
}

.tariffs__link_visible {
    background: #EA6089;
    color: #FFFFFF;
    opacity: 0.4;
}

.tariffs__link_visible:hover,
.tariffs__link_visible:active,
.tariffs__link_visible:focus {
    color: #FFFFFF
}

.tariffs__link_active {
    color: #FFFFFF;
    background: #EA6089;
}

.tariffs__link_active:hover,
.tariffs__link_active:active,
.tariffs__link_active:focus {
    color: #FFFFFF;
}

.tariffs__item_active {
    background: #FFFFFF;
    box-shadow: 9px 12px 24px rgba(82, 67, 194, 0.12);
    border-radius: 18px;
    padding: 0px 27px 40px;
}

.tariffs__item_blocked > *,
.tariffs-mobile__item_blocked > * {
    opacity: 0.4;
    cursor: not-allowed;
}

.tariffs__item_blocked:hover,
.tariffs__item_blocked .tariffs__link:hover,
.tariffs-mobile__item_blocked:hover,
.tariffs-mobile__item_blocked .tariffs-mobile__link:hover,
.tariffs-mobile__item_blocked .tariffs__link_visible:hover {
    cursor: not-allowed;
}

.tariffs-mobile__item {
    background: #FFFFFF;
    padding: 30px;
    object-fit: cover;
    width: 75%;
    position: absolute;
    z-index: 1;
    box-shadow: 9px 12px 24px rgba(82, 67, 194, 0.05);
    border-radius: 18px;
}

.tariffs-mobile__item p.tariffs__subtitle {
    margin-bottom: 30px;
}

.tariffs-mobile__item_2 {
    transform: translateX(13%);
}

.tariffs-mobile__item_3 {
    transform: translateX(19%);
}

.tariffs-mobile__item_4 {
    transform: translateX(24%);
}

.tariffs-mobile__item.prev {
    box-shadow: -9px 12px 24px rgba(82, 67, 194, 0.05);
}

.tariffs-mobile__item_1.prev {
    transform: translateX(0%);
}

.tariffs__item:not(.tariffs__item_active) {
    padding: 0 28px 40px;
}

.tariffs__item {
    position: relative;
    transition: all 0.5s ease;
    padding: 0 28px;
    border-radius: 26px;
}

.tariffs__item:nth-child(2),
.tariffs__item:not(.tariffs__item_blocked):hover {
    background: #FFFFFF;
    box-shadow: 17px 22px 54px rgba(82, 67, 194, 0.12);
    border-radius: 26px;
    cursor: pointer;
    z-index: 1;
}

.tariffs__item:not(.tariffs__item_blocked):hover .tariffs__link_visible {
    opacity: 1;
}

.tariffs__item:hover+.tariffs__item_active {
    background: transparent;
    box-shadow: none;
}

.tariffs__item:hover+.tariffs__item_active .tariffs__header {
    display: none;
}

.tariffs__item:hover+.tariffs__item_active .tariffs__link_active {
    opacity: 0.4;
}

.tariffs__item_opacity .tariffs__header {
    display: none;

}

.tariffs__item_active:hover .tariffs__header {
    display: block;
}

.tariffs__item_active:hover .tariffs__link_active {
    opacity: 1;
}

.tariffs__item_opacity {
    background: transparent;
    box-shadow: none;
}

.tariffs__item_opacity .tariffs__link_active {
    opacity: 0.4;

}

.tariffs__item_1:hover+.tariffs__item_active {
    background: #FFFFFF;
    box-shadow: 17px 22px 54px rgba(82, 67, 194, 0.12);
}

.tariffs__header {
    position: absolute;
    top: 0;
    background: #66C6BE;
    box-shadow: 2px 2px 11px rgba(0, 0, 0, 0.25);
    border-radius: 0px 0px 13.5px 13.5px;
    font-weight: bold;
    font-size: 14px;
    line-height: 17px;
    text-align: center;
    letter-spacing: 0.833333px;
    color: #FFFFFF;
    max-width: 131px;
    width: 100%;
    padding: 10px 0 16px;
    left: 28px;
    transition: all 0.3s ease;
}

.tariffs-mobile__item .tariffs__caption {
    padding: 0;
}

.tariffs-mobile__link {
    margin: 0 auto;
}

.tariffs-mobile {
    display: flex;
    justify-content: space-between;
    position: relative;
    display: none;
    display: none;
    left: 2px;
}

.tariffs-mobile__item_active .tariffs-mobile__link {
    opacity: 1;
}

.tariffs-mobile__items {
    display: flex;
}


.tariffs-mobile__item_active {
    z-index: 5 !important;
    left: 7%;
    width: 75%;
    box-shadow: 0px 0px 11px rgba(48, 52, 102, 0.1);
}

.tariffs-mobile__item .tariffs-mobile__fragment {
    display: none;
}

.tariffs-mobile__item_active .tariffs-mobile__fragment {
    display: flex;
}

.tariffs-mobile__item img {
    display: none;
}

.tariffs-mobile__item_active img {
    display: block;
}

.tariffs-mobile .tariffs__link {
    margin-top: 36px;
}

.tariffs-mobile__item div {
    position: relative;
    z-index: -1;
}

.tariffs-mobile__item div p {
    color: white;
}

.tariffs-mobile__item_2.next,
.tariffs-mobile__item_3.prev {
    z-index: 3;
}

.tariffs-mobile__item_2.prev,
.tariffs-mobile__item_3.next {
    z-index: 2;
}

.tariffs-mobile__item_1.prev,
.tariffs-mobile__item_4.next {
    z-index: 1;
}

.tariffs-mobile__item_active div {
    z-index: 1;
}

.tariffs-mobile__item_active div p {
    color: #5E629B;
}

.tariffs-mobile__item_4.tariffs-mobile__item_active+.next {
    display: none;
}

a.prev {
    transform: rotate(180deg);
    position: absolute;
    z-index: 6;
    display: flex;
    animation: backwards;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
    width: 50px;
    cursor: pointer;
    display: none;
    top: -28px;
    transition: all 0.3s ease;
}

a.prev_active {
    display: flex;
}

a.next {
    position: absolute;
    top: -28px;
    right: 4%;
    z-index: 6;
    display: flex;
    animation: backwards;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
    width: 50px;
    cursor: pointer;
}

a.next_disabled {
    display: none;
}

.tariffs-mobile .tariffs__text {
    margin-bottom: 0;
}

div.tariffs-mobile__fragment {
    background: #66C6BE;
    box-shadow: 2px 2px 11px rgb(0 0 0 / 10%);
    border-radius: 0px 0px 13.5px 13.5px;
    padding: 3px 0;
    font-size: 10px;
    line-height: 14px;
    font-weight: bold;
    text-align: center;
    letter-spacing: 0.833333px;
    color: #FFFFFF;
    max-width: 131px;
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 25px;

}

@media (max-width:1200px) {
    .tariffs__row {
        display: none;
    }

    .tariffs-mobile {
        display: block;
    }

    .tariffs-mobile__items {
        margin-top: 30px;
    }

    .tariffs {
        padding-left: 10px;
        padding-right: 10px;
    }

    .tariffs-mobile__characterisic {
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-between;
        align-items: baseline;
        margin-bottom: 8px;
        height: 17px;
    }

    .tariffs-mobile__characterisic:last-of-type p.tariffs__decs {
        line-height: 14px;
    }

    .tariffs-mobile__characterisic:last-of-type {
        height: auto;
    }

    .tariffs-mobile__characterisic_1 {
        margin-top: 22px;
    }



    .tariffs-mobile__characterisic_2 {
        margin-top: 18px;
    }
}

@media (max-width: 991px) {
    .tariffs__box {
        margin-bottom: 30px;
    }

    .tariffs-mobile__item {
        width: 80%;
    }

    .tariffs {
        background: transparent;
        padding-bottom: 0;
    }
}

@media (max-width: 634px) {

    p.tariffs__title,
    .tariffs__heading {
        text-align: center;
    }

    .tariffs__main-text,
    .tariffs__box {
        width: 100%;
    }

    .plans {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .tariffs-mobile__item {
        padding: 15px 25px 32px 26px;
    }

    .tariffs-mobile__active-item {
        margin-top: 9px;
    }

    div.tariffs-mobile {
        height: 579px;
    }

    .tariffs-mobile .tariffs__link {
        margin-top: 36px;
    }
}

@media (min-width: 320px) {
    .tariffs-mobile {
        height: 591px;
    }

    .tariffs-mobile__item {
        height: 100%;
    }

}

@media (max-width: 350px) {
    .switch {

        width: 124px;
        height: 26px;
    }

    .tariffs-mobile__active-item {
        margin-top: 2px;
    }

    .tariffs-mobile__link {
        width: 105px;
        padding: 9px 0;
        font-size: 11px;
    }

    .slider::before {
        height: 26px;
        width: 62px;

    }

    .slider {
        font-size: 7px;
    }

    .month {
        left: 19px;
    }

    .year {
        right: 25px;
    }

    .tariffs__box {
        margin-bottom: 8px;
    }

    .tariffs-mobile__item,
    .tariffs-mobile__item_active {
        max-width: 250px;
        width: 100%;
        height: 100%;
    }

    .tariffs-mobile .tariffs__link {
        margin-top: 36px;
    }

    p.tariffs__title {
        font-size: 17px;
        line-height: 1;
        margin-bottom: 0;
    }

    p.tariffs__heading {
        font-size: 14px;
        margin-top: 0;
        line-height: 2;
    }

    .tariffs {
        padding: 0;
    }

    .tariffs__text {
        font-size: 14px;
    }

    .tariffs__decs {
        font-size: 11px;
    }

    p.tariffs__subtitle {
        margin-bottom: 30px;
        font-size: 14px;
    }

    .tariffs-mobile__item .tariffs__caption {
        height: 36px;
        font-size: 12px;
    }

    input:checked+.slider::before {
        -webkit-transform: translateX(61px);
        -ms-transform: translateX(61px);
        transform: translateX(61px);
    }

    div.tariffs-mobile {
        height: 556px;
        margin-top: -9px;
    }

    .tariffs-mobile__item .tariffs__caption span {
        font-size: 20px;
    }

}