.tars-block {
    background: var(--white);
    padding: 100px 0px 80px;
    display: flex;
    .nav.bul {
        padding-right: unset;
    }
    .main-title.logo-title {
        gap: 12px;
    }
    .block-subtitle {
        font-weight: 500;
        font-size: 18px;
        line-height: 133%;
        text-align: center;
        color: var(--black-600);
        max-width: 600px;
        margin-bottom: 44px;
    }
    .wrapper {
        display: flex;
        padding: unset;
        flex-direction: column;
    }
    .swiper-slide:has(.tar-item) {
        height: auto;
    }
    .controllers-holder {
        display: flex;
        align-items: center;
        gap: 20px;
        justify-content: space-between;
        padding: 28px 40px 28px;
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-bottom: unset;
        margin-bottom: -14px;
    }
    .mark-desc {
        max-width: 530px;
        font-weight: 500;
        font-size: 16px;
        line-height: 138%;
        color: rgba(0, 0, 0, 0.7);
        & span {
            color: var(--black);
        }
    }
    .controllers {
        display: flex;
        padding: 5px;
        align-items: center;
        margin-left: auto;
        gap: 12px;
        width: fit-content;
    }
    .controll-btn {
        width: calc((100% - 10px) / 3);
        font-weight: 600;
        font-size: 16px;
        line-height: 138%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: var(--black);
        padding: 9px 20px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        border-radius: 100px;
        white-space: nowrap;
        font-weight: 600;
        cursor: pointer;
        min-width: fit-content;
        position: relative;
        & p {
            position: relative;
            z-index: 2;
            font-weight: 600;
            font-size: 16px;
            line-height: 138%;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            color: var(--black);
            transition: 0.3s;
        }
        &:has(>span) {
            padding: 5px 6px 5px 16px;
        }
        & span {
            position: relative;
            z-index: 2;
            padding: 4px 11px;
            border-radius: 20px;
            font-weight: 600;
            font-size: 16px;
            line-height: 138%;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            color: var(--black);
            background: var(--white);
        }
        &:before {
            content: "";
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            position: absolute;
            transition: 0.3s;
            background: linear-gradient(282.37deg, #f1f2f6 -36.87%, #f1f2f6 37.04%, #f1f2f6 106.77%);
        }
        &:after {
            content: "";
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            position: absolute;
            transition: 0.3s;
            background: linear-gradient(282.37deg, #54ffb8 -36.87%, #05c2bb 37.04%, #28aaff 106.77%);
            opacity: 0;
        }
        &.active,
        &:hover {
            & p {
                color: var(--white);
            }
            &:after {
                opacity: 1;
            }
        }
    }
    .tarifs,
    .tarifs-second,
    .tarifs-third {
        padding-top: 15px;
        width: 100%;
    }
    .swiper-slide:last-child {
        .tar-item {
            border-right: unset;
        }
    }
    .swiper-slide {
        background: rgba(0, 0, 0, 0.1);
        &:has(>.active) {
            background: linear-gradient(282.37deg, #54ffb8 -36.87%, #05c2bb 37.04%, #28aaff 106.77%);
            &+.swiper-slide .tar-item {
                margin-left: 0px;
                width: calc(100% - 1px);
            }
        }
    }
    .tar-item {
        display: flex;
        flex-direction: column;
        background: var(--white);
        border-left: unset;
        transition: 0.3s;
        width: calc(100% - 4px);
        height: calc(100% - 4px);
        background: white;
        position: relative;
        margin: 2px;
        .tar-item__top {
            display: flex;
            flex-direction: column;
            padding: 24px 20px 20px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        }
        &:not(.active) {
            margin: 1px;
            width: calc(100% - 2px);
            height: calc(100% - 2px);
        }
        &.active {
            .tar-item__top {
                padding-bottom: 19px;
            }
        }
        .btn {
            width: 100%;
        }
    }
    .tar-item__title {
        font-weight: 600;
        font-size: 16px;
        line-height: 138%;
        color: #000;
        margin-bottom: 32px;
        position: relative;
    }
    .tar-item__desc {
        font-weight: 500;
        font-size: 16px;
        line-height: 138%;
        color: var(--grey-600);
        margin-bottom: 22px;
        min-height: 18px;
        position: relative;
        & strong {
            font-weight: 700;
            color: var(--black);
        }
        & span {
            font-weight: 500;
            line-height: 138%;
            color: var(--grey-600);
        }
    }
    .tar-item__price {
        font-family: var(--second-family);
        font-weight: 700;
        font-size: 32px;
        line-height: 125%;
        color: #000;
        margin-bottom: 4px;
        display: flex;
        align-items: flex-end;
        gap: 2px;
        position: relative;
        width: 100%;
        & p {
            font-family: var(--second-family);
            font-weight: 700;
            font-size: 32px;
            line-height: 125%;
            color: #000;
            margin-bottom: unset;
        }
        & span {
            font-weight: 500;
            font-size: 18px;
            line-height: 133%;
            color: var(--grey-600);
            height: fit-content;
            display: block;
        }
        .tar-item__before {
            display: flex;
            align-items: flex-end;
            gap: 2px;
            position: absolute;
            top: -4px;
            left: 0;
            transform: translateY(-100%);
            font-weight: 500;
            font-size: 14px;
            line-height: 143%;
            color: var(--grey-600);
            margin-bottom: 22px;
            min-height: 18px;
            opacity: 0;
            pointer-events: none;
            transition: 0.3s;
            & span {
                font-weight: 500;
                font-size: 14px;
                line-height: 143%;
                color: var(--grey-600);
                text-decoration: line-through;
            }
            &.active {
                opacity: 1;
            }
        }
        .tar-item__after {
            position: absolute;
            top: -4px;
            right: 0;
            transform: translateY(-100%);
            font-weight: 600;
            font-size: 12px;
            line-height: 133%;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            color: #000;
            padding: 3px 10px;
            border-radius: 100px;
            background: #00ffb1;
            transition: 0.3s;
            opacity: 0;
            &.active {
                opacity: 1;
            }
        }
    }
    .tar-item__chars {
        display: flex;
        flex-direction: column;
        position: relative;
        padding: 20px;
        .tar-item__char {
            display: flex;
            align-items: center;
            gap: 5px;
            justify-content: space-between;
            padding: 8px 0px;
            .char-item__name {
                font-weight: 500;
                font-size: 14px;
                line-height: 143%;
                color: var(--grey-600);
            }
            .char-item__value {
                font-weight: 600;
                font-size: 14px;
                line-height: 138%;
                color: #000;
                text-align: right;
                flex-shrink: 0;
                &.green {
                    font-family: var(--second-family);
                    font-weight: 600;
                    font-size: 20px;
                    line-height: 120%;
                    background: linear-gradient(149.42deg, #30cbe9 8.22%, #3126a0 95.35%);
                    background-clip: text;
                    -webkit-background-clip: text;
                    -webkit-text-fill-color: transparent;
                }
                &.inf {
                    font-size: 26px;
                    line-height: 90%;
                }
            }
        }
    }
    .tar-item__mark {
        position: absolute;
        top: -10px;
        left: 50%;
        transform: translateX(-50%);
        background: linear-gradient(282.37deg, #54ffb8 -8.34%, #05c2bb 47.99%, #28aaff 101.14%);
        font-weight: 600;
        font-size: 12px;
        line-height: 133%;
        color: var(--white);
        padding: 3px 10px;
        border-radius: 100px;
        white-space: nowrap;
    }
    .extensions-holder {
        display: flex;
        flex-direction: column;
        margin-top: 44px;
        .extensions-title {
            font-weight: 600;
            font-size: 24px;
            line-height: 117%;
            color: var(--black);
            margin-bottom: 24px;
            letter-spacing: -0.005rem;
        }
    }
    .extensions {
        display: grid;
        grid-template-columns: repeat(3,1fr);
        border-left: 1px solid rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    .extension-item {
        display: flex;
        flex-direction: column;
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-right: unset;
        padding: 24px 20px;
        .extension-item__name {
            font-weight: 600;
            font-size: 16px;
            line-height: 138%;
            color: #000;
            margin-bottom: 8px;
            letter-spacing: -0.005rem;
        }
        .extension-item__price {
            display: flex;
            flex-wrap: wrap;
            align-items: flex-end;
            gap: 2px;
            font-family: var(--font3);
            font-weight: 700;
            font-size: 32px;
            line-height: 125%;
            color: #000;
            margin-bottom: 5px;
            letter-spacing: -0.005rem;
            & span {
                font-weight: 500;
                font-size: 18px;
                line-height: 133%;
                color: var(--grey-600);
                letter-spacing: -0.005rem;
            }
        }
        .extension-item__desc {
            font-weight: 500;
            font-size: 16px;
            line-height: 138%;
            color: var(--grey-600);
            letter-spacing: -0.005rem;
        }
        &:nth-child(3),
        &:nth-child(6) {
            border-right: 1px solid rgba(0, 0, 0, 0.1);
        }
    }
    @media (max-width: 1200px) { 
        padding: 40px 0px;
        .swiper-slide:has(>.active) {
            &+.swiper-slide .tar-item {
                margin-left: 1px;
                width: calc(100% - 2px);
            }
        }
        .block-subtitle {
            margin-left: auto;
        }
        .controllers-holder {
            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
            margin-bottom: -16px;
        }
        .main-title.logo-title {
            flex-direction: column;
            align-items: center;
            text-align: center;
        }
    }
    @media (max-width: 996px) { 
        .block-subtitle {
            font-size: 16px;
        }
        .controllers-holder {
            flex-direction: column;
            align-items: flex-start;
            padding: 24px 16px 30px;
            .controllers {
                margin-left: unset;
            }
        }
        .mark-desc {
            max-width: unset;
            width: 100%;
            font-size: 14px;
        }
    }
    @media (max-width: 768px) { 
        .extensions-holder {
            margin-top: 40px;
            .extensions-title {
                font-size: 20px;
            }
        }
        .extensions {
            display: flex;
            flex-direction: column;
            border-left: unset;
            border-bottom: unset;
            border-right: 1px solid rgba(0, 0, 0, 0.1);
            border-top: 1px solid rgba(0, 0, 0, 0.1);
        }
        .extension-item {
            padding: 20px;
            border-right: unset !important;
            border-top: unset;
        }
        .btn {
            padding: 9px 16px;
        }
        .tarifs {
            margin-right: -15px;
            padding-bottom: 1px;
            padding-right: 15px;
            width: calc(100% + 15px);
        }
    }
    @media (max-width: 498px) {
        .controllers {
            flex-wrap: wrap;
            width: 100%;
            padding: unset;
        } 
        .controll-btn {
            padding: 9px 10px;
            font-size: 12px;
            width: fit-content;
            & p {
                font-size: 12px;
            }
            &:has(>span) {
                padding: 5px 4px 5px 10px;
                gap: 8px;
            }
            & span {
                padding: 4px 8px;
                font-size: 12px;
            }
        }
    }
}