.catalog-plans {
    --pl-ink: #111b27;
    --pl-muted: #627083;
    --pl-line: #dce2e8;
    --pl-paper: #f4f7f8;
    --pl-blue: #2868d8;
    --pl-blue-dark: #164ca8;
    --pl-teal: #087f6b;
    --pl-orange: #e36a2e;
    --pl-yellow: #f3b61f;
    --pl-red: #d84f4a;
    width: min(1180px, calc(100% - 40px));
    max-width: none;
    margin: 0 auto;
    padding: 36px 0 78px;
    color: var(--pl-ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    letter-spacing: 0;
}

.catalog-plans *,
.catalog-plans *::before,
.catalog-plans *::after {
    box-sizing: border-box;
    letter-spacing: 0;
}

.catalog-plans .cp-btn {
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 9px 14px;
    font-size: .77rem;
    font-weight: 850;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.catalog-plans .cp-btn:hover {
    transform: translateY(-1px);
}

.catalog-plans .cp-btn-primary {
    border-color: var(--pl-blue);
    background: var(--pl-blue);
    color: #fff;
    box-shadow: 0 8px 20px rgba(40, 104, 216, .14);
}

.catalog-plans .cp-btn-primary:hover {
    border-color: var(--pl-blue-dark);
    background: var(--pl-blue-dark);
    color: #fff;
}

.catalog-plans .cp-btn-ghost {
    border-color: rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .06);
    color: #fff;
}

.catalog-plans .cp-btn-ghost:hover {
    border-color: rgba(255, 255, 255, .42);
    color: #fff;
}

.catalog-plans .cp-btn-highlight {
    border-color: var(--pl-yellow);
    background: var(--pl-yellow);
    color: #17202a;
}

.plans-hero {
    position: relative;
    min-height: 330px;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(245px, .6fr);
    align-items: center;
    gap: 50px;
    overflow: hidden;
    border-radius: 8px;
    padding: 46px 48px 58px;
    background: #12202e;
    color: #fff;
    box-shadow: 0 22px 56px rgba(17, 27, 39, .16);
}

.plans-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .17;
    background-image:
        linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(90deg, transparent, #000);
}

.plans-hero::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 5px;
    background: var(--pl-yellow);
}

.plans-hero-copy,
.plans-hero-price {
    position: relative;
    z-index: 1;
}

.plans-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
    color: #9eafbf;
    font-size: .69rem;
    font-weight: 750;
}

.plans-breadcrumb a {
    color: #dbe6ef;
    text-decoration: none;
}

.plans-breadcrumb i {
    font-size: .56rem;
}

.plans-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #82aff7;
    font-size: .7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.plans-hero h1 {
    margin: 12px 0 13px;
    color: #fff;
    font-size: 2.85rem;
    font-weight: 900;
    line-height: 1.05;
}

.plans-hero-copy > p {
    max-width: 700px;
    margin: 0;
    color: #afbfcd;
    font-size: .91rem;
    line-height: 1.68;
}

.plans-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 25px;
}

.plans-hero-price {
    min-height: 172px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 7px;
    padding: 26px;
    background: rgba(4, 13, 22, .3);
}

.plans-hero-price span {
    color: #a8bac9;
    font-size: .67rem;
    font-weight: 800;
    text-transform: uppercase;
}

.plans-hero-price strong {
    margin: 9px 0;
    color: #fff;
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1;
}

.plans-hero-price small {
    color: #d3dee7;
    font-size: .72rem;
    font-weight: 700;
}

.plans-progress {
    position: relative;
    z-index: 2;
    width: calc(100% - 56px);
    min-height: 90px;
    margin: -18px auto 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--pl-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(17, 27, 39, .1);
}

.plans-progress > div {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 19px;
    border-right: 1px solid var(--pl-line);
}

.plans-progress > div:last-child {
    border-right: 0;
}

.plans-progress > div > span {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid #cbd5de;
    border-radius: 50%;
    color: var(--pl-muted);
    font-size: .75rem;
    font-weight: 900;
}

.plans-progress .is-complete > span {
    border-color: var(--pl-teal);
    background: #e3f7f1;
    color: var(--pl-teal);
}

.plans-progress .is-current > span {
    border-color: var(--pl-blue);
    background: var(--pl-blue);
    color: #fff;
}

.plans-progress > div > div {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.plans-progress strong {
    overflow: hidden;
    color: var(--pl-ink);
    font-size: .77rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.plans-progress small {
    overflow: hidden;
    color: var(--pl-muted);
    font-size: .65rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.plans-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 58px 0 20px;
    border-top: 1px solid var(--pl-line);
    border-left: 1px solid var(--pl-line);
}

.plans-summary > div {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 17px;
    border-right: 1px solid var(--pl-line);
    border-bottom: 1px solid var(--pl-line);
    background: #fff;
}

.plans-summary-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: #e9f1ff;
    color: var(--pl-blue);
}

.plans-summary-icon.is-teal {
    background: #e4f8f2;
    color: var(--pl-teal);
}

.plans-summary-icon.is-orange {
    background: #fff0e6;
    color: var(--pl-orange);
}

.plans-summary > div > span:last-child {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.plans-summary small {
    color: var(--pl-muted);
    font-size: .64rem;
    font-weight: 750;
    text-transform: uppercase;
}

.plans-summary strong {
    overflow: hidden;
    color: var(--pl-ink);
    font-size: .86rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.plan-region-filter {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 21px;
    border: 1px solid var(--pl-line);
    border-radius: 8px;
    padding: 13px;
    background: var(--pl-paper);
}

.plan-region-filter-title {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--pl-ink);
    font-size: .73rem;
    font-weight: 900;
}

.plan-region-filter-title i {
    color: var(--pl-blue);
}

.plan-region-options {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.plan-region-pill {
    min-height: 35px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    border: 1px solid var(--pl-line);
    border-radius: 999px;
    padding: 6px 10px;
    background: #fff;
    color: #495a6c;
    font-size: .69rem;
    font-weight: 800;
    text-decoration: none;
}

.plan-region-pill:hover,
.plan-region-pill.active {
    border-color: var(--pl-blue);
    color: var(--pl-blue);
}

.plan-region-pill.active {
    background: #eaf1ff;
}

.plan-location-flag {
    font-size: 1rem;
    line-height: 1;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.plan-card {
    position: relative;
    min-width: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--pl-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(17, 27, 39, .04);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.plan-card:hover {
    transform: translateY(-4px);
    border-color: #a8bdd2;
    box-shadow: 0 18px 46px rgba(17, 27, 39, .11);
}

.plan-card-featured {
    border-color: #92afe1;
    box-shadow: inset 0 4px 0 var(--pl-blue), 0 14px 36px rgba(40, 104, 216, .11);
}

.plan-card-unavailable {
    opacity: .78;
}

.plan-featured-ribbon {
    min-height: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--pl-blue);
    color: #fff;
    font-size: .66rem;
    font-weight: 900;
    text-transform: uppercase;
}

.plan-head {
    min-height: 158px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    padding: 22px 20px 18px;
    border-bottom: 1px solid var(--pl-line);
}

.plan-service-label {
    color: var(--pl-blue);
    font-size: .65rem;
    font-weight: 900;
    text-transform: uppercase;
}

.plan-name {
    margin: 8px 0 7px;
    color: var(--pl-ink);
    font-size: 1.16rem;
    font-weight: 900;
    line-height: 1.2;
}

.plan-desc {
    margin: 0;
    color: var(--pl-muted);
    font-size: .75rem;
    line-height: 1.5;
}

.plan-badges {
    max-width: 108px;
    display: grid;
    justify-items: end;
    gap: 5px;
}

.plan-badge {
    max-width: 108px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #c9d5e0;
    border-radius: 999px;
    padding: 5px 7px;
    background: #fff;
    color: #4a5a6c;
    font-size: .61rem;
    font-weight: 850;
    line-height: 1.2;
    text-align: center;
}

.plan-badge.application {
    border-color: #b7dbc8;
    background: #eaf8f2;
    color: var(--pl-teal);
}

.plan-badge.accent {
    border-color: #f0d28f;
    background: #fff6df;
    color: #9a5a00;
}

.plan-badge.capacity-available {
    border-color: #b7dbc8;
    background: #eaf8f2;
    color: var(--pl-teal);
}

.plan-badge.capacity-limited,
.plan-badge.capacity-maintenance {
    border-color: #f0d28f;
    background: #fff6df;
    color: #9a5a00;
}

.plan-badge.capacity-disabled,
.plan-badge.capacity-sold_out {
    border-color: #ecc0be;
    background: #ffeded;
    color: #a83733;
}

.plan-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
}

.plan-price-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
}

.plan-price {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.plan-price strong {
    color: var(--pl-ink);
    font-size: 1.85rem;
    font-weight: 900;
    line-height: 1;
}

.plan-price span {
    color: var(--pl-muted);
    font-size: .66rem;
    font-weight: 700;
}

.plan-yearly {
    display: grid;
    justify-items: end;
    gap: 2px;
    text-align: right;
}

.plan-yearly small {
    color: var(--pl-muted);
    font-size: .61rem;
}

.plan-yearly strong {
    color: #36485b;
    font-size: .72rem;
    font-weight: 900;
}

.plan-yearly em {
    color: var(--pl-teal);
    font-size: .61rem;
    font-style: normal;
    font-weight: 850;
}

.plan-use-case,
.plan-delivery,
.plan-capacity {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid var(--pl-line);
    border-radius: 6px;
    padding: 11px;
    background: var(--pl-paper);
}

.plan-use-case > i,
.plan-delivery > i,
.plan-capacity > i {
    width: 18px;
    flex: 0 0 auto;
    margin-top: 2px;
    color: var(--pl-blue);
    text-align: center;
}

.plan-use-case > span {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.plan-use-case small {
    color: var(--pl-muted);
    font-size: .59rem;
    text-transform: uppercase;
}

.plan-use-case strong {
    color: var(--pl-ink);
    font-size: .71rem;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.plan-delivery,
.plan-capacity {
    color: #495a6c;
    font-size: .7rem;
    line-height: 1.45;
}

.plan-delivery > i {
    color: var(--pl-orange);
}

.plan-capacity.capacity-available > i {
    color: var(--pl-teal);
}

.plan-capacity.capacity-limited > i,
.plan-capacity.capacity-maintenance > i {
    color: #bf7200;
}

.plan-capacity.capacity-disabled > i,
.plan-capacity.capacity-sold_out > i {
    color: var(--pl-red);
}

.plan-included-app {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border: 1px solid #bed9ca;
    border-radius: 7px;
    padding: 11px;
    background: #eef9f6;
}

.plan-included-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: var(--pl-teal);
    color: #fff;
    font-size: 1.05rem;
}

.plan-included-app > div {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.plan-included-app small {
    color: var(--pl-teal);
    font-size: .59rem;
    font-weight: 850;
    text-transform: uppercase;
}

.plan-included-app strong {
    color: var(--pl-ink);
    font-size: .75rem;
    font-weight: 900;
}

.plan-included-app div span {
    color: var(--pl-muted);
    font-size: .64rem;
    line-height: 1.35;
}

.plan-included-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 5px;
    padding: 5px 7px;
    background: #fff2e8;
    color: #b8501f;
    font-size: .59rem;
    font-weight: 850;
    white-space: nowrap;
}

.plan-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--pl-line);
    border-left: 1px solid var(--pl-line);
}

.plan-spec {
    min-width: 0;
    min-height: 67px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px;
    border-right: 1px solid var(--pl-line);
    border-bottom: 1px solid var(--pl-line);
}

.plan-spec > i {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 5px;
    background: #e9f1ff;
    color: var(--pl-blue);
}

.plan-spec:nth-child(2) > i {
    background: #e4f8f2;
    color: var(--pl-teal);
}

.plan-spec:nth-child(3) > i {
    background: #fff0e6;
    color: var(--pl-orange);
}

.plan-spec:nth-child(4) > i {
    background: #ffeded;
    color: var(--pl-red);
}

.plan-spec > span {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.plan-spec strong {
    overflow: hidden;
    color: var(--pl-ink);
    font-size: .75rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.plan-spec small {
    color: var(--pl-muted);
    font-size: .6rem;
}

.plan-feature-list {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.plan-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #405166;
    font-size: .7rem;
    line-height: 1.4;
}

.plan-feature-list i {
    margin-top: 2px;
    color: var(--pl-teal);
}

.plan-location-block {
    margin-top: auto;
    padding-top: 2px;
}

.plan-location-block > small {
    display: block;
    margin-bottom: 7px;
    color: var(--pl-muted);
    font-size: .59rem;
    font-weight: 800;
    text-transform: uppercase;
}

.plan-location-row {
    min-height: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.plan-location-pill {
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--pl-line);
    border-radius: 999px;
    padding: 5px 7px;
    background: #fff;
    color: #526275;
    font-size: .62rem;
    font-weight: 750;
}

.plan-actions .cp-btn {
    width: 100%;
}

.plan-actions .cp-btn.is-disabled {
    pointer-events: none;
    filter: saturate(.65);
    opacity: .7;
}

.plans-empty {
    max-width: 620px;
    margin: 50px auto 0;
    border: 1px dashed #b9c7d4;
    border-radius: 8px;
    padding: 54px 24px;
    background: #fff;
    text-align: center;
}

.plans-empty > span {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 7px;
    background: #e9f1ff;
    color: var(--pl-blue);
}

.plans-empty h2 {
    color: var(--pl-ink);
    font-size: 1.22rem;
    font-weight: 900;
}

.plans-empty p {
    max-width: 480px;
    margin: 9px auto 20px;
    color: var(--pl-muted);
    font-size: .8rem;
    line-height: 1.6;
}

@media (max-width: 1120px) {
    .plan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .catalog-plans {
        width: min(100% - 28px, 1180px);
        padding-top: 26px;
    }

    .plans-hero {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 38px 32px 48px;
    }

    .plans-hero-price {
        min-height: 120px;
    }

    .plans-progress {
        width: calc(100% - 30px);
    }

    .plans-progress > div {
        align-items: flex-start;
        flex-direction: column;
    }

    .plans-progress small {
        white-space: normal;
    }

    .plan-region-filter {
        align-items: flex-start;
        flex-direction: column;
    }

    .plan-region-options {
        width: 100%;
        padding-bottom: 3px;
    }
}

@media (max-width: 640px) {
    .catalog-plans {
        width: min(100% - 20px, 1180px);
        padding-bottom: 58px;
    }

    .plans-hero {
        padding: 31px 20px 43px;
    }

    .plans-hero h1 {
        font-size: 2rem;
    }

    .plans-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .plans-hero-actions .cp-btn {
        width: 100%;
    }

    .plans-progress {
        width: calc(100% - 20px);
        grid-template-columns: 1fr;
    }

    .plans-progress > div {
        min-height: 64px;
        align-items: center;
        flex-direction: row;
        padding: 12px;
        border-right: 0;
        border-bottom: 1px solid var(--pl-line);
    }

    .plans-progress > div:last-child {
        border-bottom: 0;
    }

    .plans-summary {
        grid-template-columns: 1fr;
        margin-top: 45px;
    }

    .plan-grid {
        grid-template-columns: 1fr;
    }

    .plan-head {
        min-height: 0;
    }

    .plan-card:hover {
        transform: none;
    }
}

@media (max-width: 430px) {
    .plan-head {
        grid-template-columns: 1fr;
    }

    .plan-badges {
        max-width: none;
        display: flex;
        flex-wrap: wrap;
        justify-items: initial;
    }

    .plan-badge {
        max-width: 100%;
    }

    .plan-price-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .plan-yearly {
        justify-items: start;
        text-align: left;
    }

    .plan-included-app {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .plan-included-time {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .catalog-plans *,
    .catalog-plans *::before,
    .catalog-plans *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}
