:root {
    --price-bg: #4BB933;
    --price-bg-active: #F9B519;
    --white: #fff;
    --black: #000;
    --grey: #6E7C87;
}

.offer-style-price h2 {
    font-size: 30px;
    line-height: 35px;
    font-weight: 600;
    margin: 26px 0;
}

.prices__nav {
    display: flex;
    gap: 1px;
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.prices__nav-elem {
    padding: 6px 20px;
    background: var(--price-bg);
    color: var(--white);
    font-size: 18px;
    line-height: 30px;
    font-weight: 400;
}

.prices__nav-elem.active {
    background: var(--price-bg-active);
}

.prices__nav-elem:hover {
    background: var(--price-bg-active);
    cursor: pointer;
}

.prices__content {
    margin-top: 25px;
}

.prices__content-container {
    display: none;
}

.prices__content-container.active {
    display: block;
}

.prices__content-elem {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 26px;
}

.prices__element {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    padding: 13px 30px 13px 20px;
    background: #F3F5F8;
}

.prices__element-pre-num {
    background: var(--price-bg);
    color: var(--white);
    font-size: 20px;
    line-height: 23px;
    font-weight: 700;
    border-radius: 30px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prices__element-place {
    font-size: 18px;
    line-height: 20px;
    font-weight: 400;
    color: var(--black);
    max-width: 120px;
}

.prices__element-title {
    font-weight: 400;
    font-size: 18px;
    line-height: 30px;
    color: var(--black);
}

.prices__element-sub {
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
    color: var(--grey);
}

.prices__element-info {
    display: flex;
    flex: 0 1 58%;
    align-items: center;
    justify-content: space-between;
}

.prices__element-price-title {
    font-weight: 500;
    font-size: 32px;
    line-height: 37px;
    color: #1F1F1F;
    max-width: 155px;
    text-align: right;
}

.prices__element-price-sub {
    font-weight: 400;
    color: var(--grey);
    font-size: 14px;
    line-height: 18px;
    text-align: right;
}

.prices__element-button {
    color: var(--white);
    font-weight: 400;
    line-height: 30px;
    font-size: 18px;
    background: var(--price-bg);
    margin-left: 20px;
    display: flex;
    padding: 16px 38px;
    text-decoration: none;
}

.prices__element-button:hover {
    background: var(--price-bg-active);
    color: var(--white);
}

.prices__element-order {
    display: flex;
    align-items: center;
}

.prices__element-name {
    flex: 0 0 272px;
}

.prices__element-pre-text {
    font-size: 18px;
    line-height: 30px;
    font-weight: 400;
    color: var(--white);
    padding: 2px 15px;
    background: var(--price-bg);
    border-radius: 30px;
    white-space: nowrap;
}

.prices__element-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.prices__element-info-container {
    display: flex;
    gap: 20px;
}

.prices__element-pre {
    display: flex;
}

.prices__element-price-title span {
    font-size: 20px;
    display: inline-block;
}

.service .prices__element-name {
    flex: 0 0 600px;
}

.service .prices__element-info {
    flex: 0 1 70%;
}

@media (max-width: 1140px) {
    .prices__element-name {
        flex: 0 0 195px;
    }

    .prices__element-price-title {
        font-size: 18px;
        line-height: 26px;
    }

    .prices__element-button {
        padding: 16px 26px;
        font-size: 16px;
        margin-left: 10px;
    }

    .prices__element-place {
        font-size: 16px;
        line-height: 18px;
        max-width: 100px;
    }

    .prices__element-info,
    .service .prices__element-info {
        flex: 0 1 60%;
    }
}

@media (max-width: 960px) {
    .prices__element {
        flex-direction: column;
        gap: 15px;
        padding: 20px 15px 25px 15px;
    }

    .prices__element-info,
    .service .prices__element-info {
        flex: 1;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .prices__element-name,
    .service .prices__element-name {
        flex: 1;
    }

    .prices__element-place {
        font-size: 18px;
        line-height: 30px;
        max-width: unset;
    }

    .prices__element-title {
        font-size: 18px;
        line-height: 30px;
    }

    .prices__element-info-container {
        align-items: center;
        gap: 20px;
        margin-top: 10px;
        margin-bottom: 15px;
        margin-left: 6px;
    }

    .prices__nav {
        flex-direction: column;
        gap: 1px;
        font-size: 18px;
        line-height: 30px;
    }

    .prices__element-price-title {
        font-size: 32px;
        line-height: 37px;
        max-width: unset;
        text-align: left;
    }

    .prices__element-order {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .prices__element-button {
        padding: 16px 0;
        width: 100%;
        margin-left: 0;
        justify-content: center;
    }

    .prices__element-pre-text {
        font-size: 18px;
        line-height: 30px;
    }

    .prices__nav-elem {
        text-align: center;
        font-size: 18px;
        line-height: 30px;
    }

    .prices__element-info-container.empty {
        display: none;
    }

    .prices__element-info-container:has(.prices__element-pre-text) {
        margin-left: 0;
        margin-top: 0;
    }

    .prices__content-elem {
        margin-bottom: 12px;
    }

    .prices__content {
        margin-top: 20px;
    }

    .prices__element-price {
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .offer-style-price h2 {
        font-size: 20px;
        line-height: 23px;
        margin-bottom: 25px;
        margin-top: 40px;
    }
}