.pricing-page {
    --page-scroll-padding-bottom: 100px;
    --page-shell-max-width: 1000px;
    --page-shell-padding-top: 0;
    --page-shell-padding-bottom: 0;
    --page-hero-padding-top: 30px;
    --page-hero-padding-bottom: 80px;
    --page-hero-margin-bottom: 0;
    --page-hero-title-size: clamp(3rem, 8vw, 5.5rem);
    --page-hero-desc-max-width: 500px;
    --page-hero-desc-size: 1.1rem;
}

    .pricing-page .page-hero__title span {
        font-style: italic;
        font-weight: 500;
        color: #777;
    }

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 88px;
    align-items: stretch;
}

.p-card {
    border-radius: 30px;
    padding: 42px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background-color 0.35s ease;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

    .p-card:hover {
        transform: translateY(-6px);
        z-index: 10;
    }

.p-card--interactive {
    cursor: pointer;
}

    .p-card--interactive:focus-visible {
        outline: 2px solid rgba(185, 28, 28, 0.7);
        outline-offset: 4px;
    }

.p-head {
    margin-bottom: 32px;
    text-align: center;
}

.p-name {
    font-family: var(--font-family-sans);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.p-price-wrapper {
    margin-bottom: 12px;
}

.p-price-main {
    font-family: var(--font-family-sans);
    font-size: clamp(2.8rem, 6vw, 3.4rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.p-price-period {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.7;
    margin-left: 6px;
    letter-spacing: 0;
}

.p-price-sub {
    font-size: 0.86rem;
    margin-top: 8px;
    opacity: 0.62;
    font-weight: 700;
}

.p-sub-desc {
    font-size: 0.96rem;
    margin-top: 16px;
    opacity: 0.82;
    line-height: 1.7;
    text-wrap: pretty;
}

.p-features {
    list-style: none;
    margin-bottom: 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.p-feat-item {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: start;
    column-gap: 14px;
    font-size: 0.97rem;
    line-height: 1.6;
}

    .p-feat-item span {
        display: block;
        text-wrap: pretty;
    }

.p-feat-item--note {
    opacity: 0.7;
    font-size: 0.86rem;
    margin-left: 38px;
}

.p-icon {
    width: 24px;
    height: 24px;
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
    flex-shrink: 0;
}

.p-btn {
    width: 100%;
    min-height: 56px;
    padding: 0 22px;
    border-radius: 999px;
    border: none;
    font-family: var(--font-family-sans);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    font-size: 0.82rem;
}

.p-card.standard {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(0, 0, 0, 0.07);
    color: var(--color-text-main);
    box-shadow: 0 26px 60px -42px rgba(0, 0, 0, 0.16);
}

    .p-card.standard:hover {
        box-shadow: 0 34px 70px -40px rgba(0, 0, 0, 0.18);
        border-color: rgba(0, 0, 0, 0.1);
    }

    .p-card.standard .p-price-main {
        color: var(--color-text-main);
    }

    .p-card.standard .p-icon {
        color: var(--color-text-muted);
    }

    .p-card.standard .p-btn {
        background: rgba(255, 255, 255, 0.82);
        border: 1px solid rgba(0, 0, 0, 0.12);
        color: var(--color-text-main);
        box-shadow: 0 16px 30px -24px rgba(0, 0, 0, 0.14);
    }

        .p-card.standard .p-btn:hover {
            border-color: var(--color-text-main);
            background: var(--color-text-main);
            color: #fff;
            transform: translateY(-2px);
        }

.p-card.pro {
    background: linear-gradient(180deg, #181818 0%, #111111 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 40px 90px -44px rgba(0, 0, 0, 0.52);
    overflow: hidden;
}

    .p-card.pro:hover {
        box-shadow: 0 46px 100px -42px rgba(185, 28, 28, 0.28);
        border-color: rgba(185, 28, 28, 0.26);
    }

    .p-card.pro::before {
        content: '';
        position: absolute;
        inset: 0 0 auto 0;
        height: 4px;
        background: linear-gradient(90deg, rgba(185, 28, 28, 0.92), rgba(185, 28, 28, 0.18));
    }

    .p-card.pro::after {
        content: '';
        position: absolute;
        top: -80px;
        right: -60px;
        width: 220px;
        height: 220px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(185, 28, 28, 0.18) 0%, rgba(185, 28, 28, 0) 72%);
        pointer-events: none;
    }

    .p-card.pro .p-name {
        color: rgba(255, 255, 255, 0.82);
    }

    .p-card.pro .p-price-main {
        color: #fff;
    }

    .p-card.pro .p-price-sub {
        color: rgba(255, 255, 255, 0.52);
    }

    .p-card.pro .p-sub-desc {
        color: rgba(255, 255, 255, 0.82);
        opacity: 1;
    }

    .p-card.pro .p-icon {
        color: #ffb4b4;
    }

    .p-card.pro .p-btn {
        background: var(--color-primary);
        color: #fff;
        box-shadow: 0 18px 40px -22px rgba(185, 28, 28, 0.5);
    }

        .p-card.pro .p-btn:hover {
            background: var(--color-primary-hover);
            transform: translateY(-2px);
            box-shadow: 0 24px 48px -20px rgba(185, 28, 28, 0.54);
        }

.best-value-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(185, 28, 28, 0.14);
    border: 1px solid rgba(185, 28, 28, 0.3);
    color: #ffcece;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

    .best-value-badge::after {
        display: none;
    }

@media (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr 1.08fr;
        align-items: center;
        max-width: 920px;
        margin-left: auto;
        margin-right: auto;
    }

    .p-card.standard {
        margin-top: 22px;
        margin-bottom: 22px;
    }

    .p-card.pro {
        padding: 56px 48px;
        transform: scale(1.02);
        z-index: 2;
    }

        .p-card.pro:hover {
            transform: translateY(-6px) scale(1.03);
        }
}

@media (max-width: 767px) {
    .p-card {
        padding: 34px 24px;
        border-radius: 24px;
    }

    .p-name {
        letter-spacing: 0.18em;
    }

    .p-price-main {
        font-size: 2.7rem;
    }

    .best-value-badge {
        top: 14px;
        right: 14px;
    }
}

.philosophy {
    text-align: center;
    margin-bottom: 40px;
    padding: 8px 20px 0;
}

.phil-quote {
    font-family: var(--font-family-serif);
    font-size: 1.4rem;
    font-style: italic;
    color: #444;
    margin-bottom: 20px;
    text-wrap: pretty;
}

.phil-author {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
}

.p-btn--link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.pricing-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(253, 253, 252, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0s linear 0.28s;
}

    .pricing-modal-overlay.is-active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: opacity 0.28s ease, visibility 0s linear 0s;
    }

.pricing-modal-card {
    position: relative;
    width: min(100%, 460px);
    padding: 36px 28px 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 40px 100px -50px rgba(0, 0, 0, 0.35);
    text-align: center;
    transform: translateY(24px) scale(0.97);
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.pricing-modal-overlay.is-active .pricing-modal-card {
    transform: translateY(0) scale(1);
}

.pricing-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.04);
    color: #b8b8b8;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

    .pricing-modal-close:hover {
        background: rgba(0, 0, 0, 0.08);
        color: #666;
        transform: rotate(90deg);
    }

.pricing-modal-icon {
    margin-bottom: 18px;
    font-size: 3rem;
    color: #d4af37;
}

.pricing-modal-title {
    margin: 0 0 12px 0;
    font-size: 2rem;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--color-text-main);
}

.pricing-modal-text {
    margin: 0 0 24px 0;
    font-size: 0.96rem;
    line-height: 1.7;
    color: #666;
}

.pricing-modal-btn {
    max-width: 260px;
    margin: 0 auto;
}

.pricing-links {
    margin-top: 42px;
    padding-top: 28px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.pricing-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.76);
    color: var(--color-text-main);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    box-shadow: 0 16px 30px -24px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: var(--transition-standard);
}

    .pricing-link:hover {
        color: var(--color-primary);
        border-color: rgba(185, 28, 28, 0.18);
        transform: translateY(-2px);
    }

@keyframes badgePulseRing {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.45);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(212, 175, 55, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

@media (max-width: 767px) {
    .pricing-page {
        --page-hero-padding-top: 40px;
    }

    .pricing-links {
        flex-direction: column;
    }

    .pricing-link {
        width: 100%;
    }
}

@media (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr 1.1fr;
        align-items: center;
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }

    .p-card.pro {
        padding: 60px 50px;
        transform: scale(1.05);
        z-index: 2;
    }

        .p-card.pro:hover {
            transform: scale(1.08);
        }
}
