.prices-block {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 0 110px;
}

.prices-block,
.prices-block *,
.prices-block *::before,
.prices-block *::after {
    box-sizing: border-box;
}

.prices-block .tab-btns {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    padding: 6px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    border: 1px solid rgba(6, 41, 57, 0.1);
    border-radius: 100px;
    background: #eaf0f2;
}

.prices-block .tab-btn {
    min-height: 50px;
    padding: 13px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    background: transparent;
    color: var(--lText);
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    line-height: 150%;
    text-align: center;
    transition: color 0.3s, background-color 0.3s, box-shadow 0.3s;
}

.prices-block .tab-btn.active,
.prices-block .tab-btn:hover {
    background: var(--main);
    color: #fff;
    box-shadow: 0 10px 24px rgba(6, 41, 57, 0.2);
}

.prices-block .prices {
    margin-top: 42px;
}

.prices-block .part-wrapper {
    display: none;
}

.prices-block .part-wrapper.active {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
}

.prices-block .part-item {
    position: relative;
    overflow: hidden;
    flex: 1 1 360px;
    max-width: 430px;
    min-width: 0;
    min-height: 520px;
    padding: 40px 32px 34px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(6, 41, 57, 0.12);
    border-radius: 28px;
    background: linear-gradient(180deg, #fff 0%, #fbfcfc 100%);
    box-shadow: 0 20px 50px rgba(6, 41, 57, 0.08);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.prices-block .part-item::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--main), var(--sec));
}

.prices-block .part-item:hover {
    transform: translateY(-4px);
    border-color: rgba(6, 41, 57, 0.22);
    box-shadow: 0 26px 60px rgba(6, 41, 57, 0.13);
}

.prices-block .part-name {
    margin: 0 0 20px;
    color: var(--main);
    font-size: clamp(28px, 2.2vw, 36px);
    font-weight: 700;
    line-height: 120%;
    text-align: center;
}

.prices-block .part-desc {
    width: 100%;
    max-width: 390px;
    margin: 0 auto 26px;
    color: var(--lText);
    font-size: 16px;
    font-weight: 400;
    line-height: 155%;
    text-align: center;
}

.prices-block .part-desc p {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
}

.prices-block .part-desc p + p {
    margin-top: 12px;
}

.prices-block .part-desc em {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f1f5f6;
    color: #687278;
    font-size: 14px;
    line-height: 145%;
}

.prices-block .chars {
    width: 100%;
    max-width: 300px;
    margin: auto auto 26px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.prices-block .char-item {
    width: 100%;
    min-height: 116px;
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(6, 41, 57, 0.08);
    border-radius: 18px;
    background: linear-gradient(145deg, #f4f7f8 0%, #edf3f5 100%);
    text-align: center;
}

.prices-block .char-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.prices-block .icon {
    width: 18px;
    height: 18px;
    display: flex;
}

.prices-block .icon svg,
.prices-block .icon img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
}

.prices-block .char-name {
    color: var(--lText);
    font-size: 15px;
    font-weight: 500;
    line-height: 140%;
}

.prices-block .char-value {
    margin-top: 6px;
    color: var(--main);
    font-size: clamp(25px, 2vw, 32px);
    font-weight: 700;
    line-height: 120%;
    white-space: nowrap;
}

.prices-block .btn.second {
    width: 100%;
    max-width: 340px;
    min-height: 62px;
    margin: auto auto 0;
    padding: 18px 24px 18px 70px;
    font-size: 16px;
    line-height: 130%;
    text-align: center;
}

.prices-block .btn.second:hover {
    padding-right: 70px;
    padding-left: 24px;
}

@media (max-width: 996px) {
    .prices-block {
        padding-bottom: 70px;
    }

    .prices-block .prices {
        margin-top: 32px;
    }

    .prices-block .part-item {
        min-height: 0;
    }
}

@media (max-width: 600px) {
    .prices-block {
        padding: 4px 15px 44px 0;
    }

    .prices-block .tab-btns {
        width: 100%;
        padding: 5px;
        border-radius: 20px;
    }

    .prices-block .tab-btn {
        flex: 1 1 calc(50% - 3px);
        min-height: 46px;
        padding: 10px 14px;
        border-radius: 16px;
        font-size: 14px;
    }

    .prices-block .part-wrapper.active {
        gap: 16px;
    }

    .prices-block .part-item {
        width: 100%;
        max-width: 100%;
        flex-basis: 100%;
        padding: 32px 20px 24px;
        border-radius: 22px;
    }

    .prices-block .part-name {
        margin-bottom: 14px;
        font-size: 26px;
    }

    .prices-block .part-desc {
        margin-bottom: 20px;
        font-size: 15px;
    }

    .prices-block .chars {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .prices-block .char-item {
        min-height: 102px;
    }

    .prices-block .char-value {
        font-size: 26px;
    }

    .prices-block .btn.second {
        max-width: 100%;
        min-height: 60px;
        padding: 16px 18px 16px 66px;
        font-size: 14px;
    }

    .prices-block .btn.second::before {
        width: 50px;
        height: 50px;
        top: 4px !important;
        left: 4px;
    }

    .prices-block .btn.second:hover::before {
        right: 4px;
        left: auto;
    }
}
