.tariff {
    height: 100%;
}

.inn_tariff {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.tariff .mini_title {
    max-width: 900px;

}

.tariff_info {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1066px;
    margin-top: 52px;
}

.tariff_title {
    text-align: center;
    font-size: 40px;
    line-height: calc(56 / 40);
    letter-spacing: .08em;
}

.tariff_desc {
    max-width: 546px;
    text-align: center;
    margin-top: 24px;
    color: #878787;
}

.tariff_cards {
    width: 100%;
    display: flex;
    --gap: 24px;
    --elems: 4;
    gap: var(--gap);
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 64px;
}

@media (min-width: 1441px) {
    .tariff_cards > :nth-child(2n) {
        padding-top: 96px;
    }
}

.tariff_card {
    max-width: 374px;
    width: calc((100% - var(--gap) * (var(--elems) - 1)) / var(--elems));
}

.tariff_card .mini_title {
    height: 32px;
}

.tariff_card .mini_title:before {
    content: unset;
}

.tariff_card .mini_title span {
    color: #F5F5F5;
    font-size: 20px;
    font-weight: 300;
    letter-spacing: unset;
    text-transform: unset;
    padding: 0 24px 0 0;
}

.tariff_card_desc {
    margin-top: 12px;
}

.tariff_card_desc_gray {
    text-wrap: balance;
    font-size: 14px;
    line-height: calc(22 / 14);
    color: #878787;
    margin-top: 8px;
}

.tariff_card_price {
    margin-top: 12px;
    display: flex;
    align-items: center;
    color: #878787;
    text-transform: uppercase;
    gap: 16px;
}

.tariff_card_price_val {
    font-size: 24px;
    letter-spacing: .08em;
    line-height: 1;
    font-weight: 300;
}

.tariff_card_price_measure {
    height: 35px;
    display: flex;
    align-items: center;
    border-left: 1px solid var(--c-gold);
    border-right: 1px solid var(--c-gold);
    border-radius: 100px;
    padding: 0 24px;
    line-height: 1;
    letter-spacing: .12em;
}

/* .tariff_card_price_measure span {
    transform: translateY(-2px);
} */

@media (max-width: 1440px) {
    .tariff_info {
        margin-top: 40px;
    }

    .tariff_title {
        font-size: 32px;
        line-height: calc(48 / 32);
    }

    .tariff_cards {
        margin-top: 48px;
        align-items: center;
        flex-wrap: wrap;
        --elems: 2;
        --gap: 16px;
        gap: 32px var(--gap);
    }

    .tariff_card {
        max-width: unset;
    }
}

@media (max-width: 1024px) {
    .inn_tariff > .mini_title {
        max-width: 343px;
    }

    .tariff_info {
        margin-top: 20px;
    }

    .tariff_title {
        max-width: 490px;
        font-size: 24px;
        line-height: calc(36 / 24);
    }

    .tariff_desc {
        max-width: 464px;
        margin-top: 12px;
    }

    .tariff_cards {
        margin-top: 32px;
    }
}

@media (max-width: 720px) {
    .tariff_cards {
        --elems: 1;
    }
}