:root {
    --primary-color: #09B6A2;
    --primary-dark: #078577;
}

.pricing-page {
    position: relative;

    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    overflow: hidden;
    background: #ffffff;
}

.pricing-section {
    padding: 4rem 1rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.pricing-page-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0;
    color: #2C3E50;
    text-transform: uppercase;
}

.pricing-page-subtitle {
    display: block;
    font-size: 0.5em;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (min-width: 769px) {
    .pricing-grid {
        max-width: 1100px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: repeat(2, minmax(400px, 1fr));
        gap: 2.5rem;
        justify-content: center;
    }
}

.pricing-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 1.5rem;
    position: relative;
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

@media (min-width: 769px) {
    .pricing-card {
        transition: all 0.3s ease;
    }

    .pricing-card:hover {
        transform: none;
        border-color: #09b6a2;
        box-shadow: 0 0 0 2px rgba(9, 182, 162, 0.1);
    }

    .pricing-card.popular:hover {
        transform: none;
        border-color: #09b6a2;
        box-shadow: 0 0 0 2px rgba(9, 182, 162, 0.1);
    }
}

.pricing-card.popular {
    background: rgba(255, 255, 255, 1);
    border: 1px solid rgb(7 147 131 / 50%);
    box-shadow:
        0 0 0 2px rgba(7, 147, 131, 0.05),
        0 8px 16px -8px rgba(7, 147, 131, 0.1);
}

.popular-label {
    position: absolute;
    top: -12px;
    right: 24px;
    transform: none;
    background: linear-gradient(135deg, #09b6a2 0%, #079383 100%);
    color: white;
    padding: 6px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 20px;
    z-index: 10;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(7, 147, 131, 0.25);
}

.card-header {
    text-align: center;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.card-header h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0;
    letter-spacing: -0.01em;
}

.features {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    flex-grow: 1;
}

.features li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.1rem 0;
    color: #4a5568;
    font-size: 1.05rem;
    line-height: 1.4;
}

.features li i {
    font-size: 1.25rem;
    flex-shrink: 0;
    position: relative;
    top: -1px;
    color: #2C3E50;
}

.pricing-card.popular .features li i.bi-collection-play-fill,
.pricing-card.popular .features li i.bi-camera-video-fill,
.pricing-card.popular .features li i.bi-rocket-takeoff-fill,
.pricing-card.popular .features li i.bi-layers-fill,
.pricing-card.popular .features li i.bi-piggy-bank-fill {
    color: #099388;
}

.pricing-card.popular .features li:has(i.bi-collection-play-fill) span,
.pricing-card.popular .features li:has(i.bi-camera-video-fill) span,
.pricing-card.popular .features li:has(i.bi-rocket-takeoff-fill) span,
.pricing-card.popular .features li:has(i.bi-layers-fill) span,
.pricing-card.popular .features li:has(i.bi-piggy-bank-fill) .bonus-amount {
    color: #099388;
    font-weight: 600;
}

.generation-cost {
    margin: 1rem -1.5rem;
    padding: 0.875rem 1.5rem;
    background: rgba(9, 182, 162, 0.04);
    border-top: 1px solid rgba(9, 182, 162, 0.08);
    border-bottom: 1px solid rgba(9, 182, 162, 0.08);
}

.generation-cost-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: #2d3748;
    font-weight: 600;
}

.generation-cost-header i {
    color: #099388;
    font-size: 1.2rem;
    animation: pulse-lightning 2s ease-in-out infinite;
}

.generation-cost-list {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    padding: 0.1rem 0;
    gap: 0.5rem;
}

.cost-label {
    color: #4a5568;
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cost-label::before {
    content: '•';
    color: #099388;
    font-size: 1.125rem;
    line-height: 1;
    flex-shrink: 0;
}

.cost-value {
    color: #099388;
    font-weight: 600;
    font-size: 0.9375rem;
    white-space: nowrap;
    margin-left: 1rem;
}

@keyframes pulse-lightning {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.pricing-card .btn-primary {
    background: #09b6a2;
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    font-size: 1.0625rem;
    letter-spacing: 0.01em;
}

@media (min-width: 769px) {
    .pricing-card .btn-primary:hover {
        transform: none;
        background: #06846b;
    }
}

.pricing-notice {
    text-align: center;
    margin-top: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
}

.pricing-notice .price {
    color: #1DBCAA;
}

.card-action {
    padding: 0.875rem 0 0;
}

.current-plan-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background-color: rgba(9, 182, 162, 0.08);
    border: 3px solid rgba(9, 182, 162, 0.3);
    border-radius: 50px;
    color: #09b6a2;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    transition: all 0.3s ease;
}

.current-plan-status:hover {
    background-color: rgba(9, 182, 162, 0.12);
}

.current-plan-status .status-icon {
    display: inline-flex;
    align-items: center;
}

.current-plan-status .status-icon i {
    font-size: 1.25rem;
}

.current-plan-status .status-text {
    margin-top: 1px;
    color: inherit !important;
    font-size: inherit !important;
}

.pricing-card.popular .current-plan-status {
    background-color: rgba(9, 182, 162, 0.12);
    border-color: rgba(9, 182, 162, 0.4);
}

.pricing-card .btn,
.pricing-card .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1.75rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 50px;
    background: linear-gradient(120deg, #09B6A2 0%, #079383 100%) !important;
    color: white !important;
    border: 3px solid #09B6A2 !important;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(9, 182, 162, 0.3);
}

@media (min-width: 769px) {
    .pricing-card .btn:hover,
    .pricing-card .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(9, 182, 162, 0.4);
        background: linear-gradient(120deg, #0ac9b3 0%, #08a593 100%) !important;
    }

    .pricing-card.popular .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(9, 182, 162, 0.4);
        background: linear-gradient(120deg, #0ac9b3 0%, #08a593 100%);
    }
}

.pricing-card.popular .btn-primary {
    background: linear-gradient(120deg, #09B6A2 0%, #079383 100%);
    color: white;
}

.vip-title {
    position: relative;
    display: inline-block;
}

.p-with-crown {
    position: relative;
    display: inline-block;
}

.crown-icon {
    position: absolute;
    width: 36px;
    height: 36px;
    top: -22px;
    right: -22px;
    transform: rotate(16deg);
    transition: all 0.3s ease;
}

@media (min-width: 769px) {
    .pricing-card:hover .crown-icon {
        top: -24px;
        right: -4px;
        transform: rotate(1deg);
    }
}

.crown-main {
    fill: #ffcf08;
    filter: drop-shadow(0px 1px 1px rgba(0, 0, 0, 0.1));
}

.bonus-amount {
    color: #09b6a2;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

@media (min-width: 769px) {
    .pricing-card:hover .bonus-amount {
        color: #06846b;
    }
}

.bonus-tooltip-wrapper {
    position: relative;
    display: inline-block;
    margin-left: 0.375rem;
    vertical-align: middle;
}

.bonus-help-icon {
    font-size: 0.9375rem;
    color: #09b6a2;
    cursor: help;
    opacity: 0.7;
    transition: all 0.3s ease;
    background: rgba(9, 182, 162, 0.08);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(9, 182, 162, 0.15);
}

.bonus-help-icon:hover {
    opacity: 1;
    background: rgba(9, 182, 162, 0.15);
    border-color: rgba(9, 182, 162, 0.3);
    transform: scale(1.1);
}

.bonus-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(9, 182, 162, 0.2);
    border-radius: 10px;
    padding: 0.625rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 400;
    color: #2d3748;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(9, 182, 162, 0.05);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    pointer-events: none;
    z-index: 10;
    line-height: 1.4;
}

.bonus-tooltip::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(255, 255, 255, 0.98);
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.05));
}

.bonus-tooltip-wrapper:hover .bonus-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 12px);
}

@media (min-width: 769px) and (max-width: 1200px) {
    .pricing-grid {
        gap: 1.5rem;
        padding: 0;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
    }

    .pricing-page-title {
        font-size: 2.75rem;
    }
}

@media (max-width: 768px) {
    /* Карусель */
    .pricing-carousel {
        position: relative;
    }

    .pricing-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0;
        padding: 0.75rem 0;
        perspective: 800px;
        max-width: none;
    }

    .pricing-grid::-webkit-scrollbar {
        display: none;
    }

    .pricing-card:first-child {
        margin-left: calc((100vw - 85vw) / 2);
    }

    .pricing-card:last-child {
        margin-right: calc((100vw - 85vw) / 2);
    }

    .pricing-card {
        flex: 0 0 85vw;
        scroll-snap-align: center;
        transition: transform 0.35s ease, opacity 0.35s ease;
        transform: scale(0.88);
        opacity: 0.5;
        padding: 0.75rem;
    }

    .pricing-card.pricing-card--active {
        transform: scale(1);
        opacity: 1;
    }

    .pricing-card.pricing-card--left {
        transform: scale(0.88) rotateY(5deg);
    }

    .pricing-card.pricing-card--right {
        transform: scale(0.88) rotateY(-5deg);
    }

    /* Popular overrides для карусели */
    .pricing-card.popular {
        transform: scale(0.88);
    }

    .pricing-card.popular:hover {
        transform: scale(0.88);
    }

    .pricing-card.popular.pricing-card--active {
        transform: scale(1);
    }

    .pricing-card.popular.pricing-card--left {
        transform: scale(0.88) rotateY(5deg);
    }

    .pricing-card.popular.pricing-card--right {
        transform: scale(0.88) rotateY(-5deg);
    }

    /* Pricing — интервалы для мобильной карусели */
    .card-header {
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .card-header h3 {
        font-size: 1.75rem;
    }

    .features {
        margin: 0 0 0.5rem;
    }

    .features {
        padding-left: 0.5rem;
        margin: 0 0 1rem !important;
    }

    .features li {
        padding: 0.2rem 0;
        font-size: 1.05rem;
        gap: 0.5rem;
        line-height: 1.1;
    }

    .features li i {
        font-size: 1.25rem;
    }

    .generation-cost {
        margin: 0.75rem -0.75rem;
        padding: 0.625rem 0.75rem;
    }

    .generation-cost-header {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
        gap: 0.5rem;
    }

    .generation-cost-header i {
        font-size: 1.2rem;
    }

    .generation-cost-list {
        gap: 0.2rem;
    }

    .cost-item {
        padding: 0.1rem 0;
    }

    .cost-label {
        font-size: 1.05rem;
        line-height: 1.4;
    }

    .cost-label::before {
        font-size: 1.125rem;
    }

    .cost-value {
        font-size: 0.9375rem;
        margin-left: 1rem;
    }

    .pricing-notice {
        font-size: 1.35rem;
        margin-top: 0.75rem;
    }

    .pricing-notice .price {
        font-size: 1.35rem;
    }

    .pricing-card .btn,
    .pricing-card .btn-primary {
        font-size: 1.15rem;
        padding: 0.75rem 1.75rem;
    }

    .current-plan-status {
        font-size: 1.05rem;
        padding: 0.75rem 1.75rem;
    }

    .card-action {
        padding: 0.5rem 0 0;
    }

    .popular-label {
        display: none;
    }

    .crown-icon {
        width: 36px;
        height: 36px;
        opacity: 0;
        transition: opacity 0.2s ease 0.3s,
                    top 0.3s ease 0s,
                    right 0.3s ease 0s,
                    transform 0.3s ease 0s;
    }

    .pricing-card.pricing-card--active .crown-icon {
        opacity: 1;
        top: -24px;
        right: -4px;
        transform: rotate(1deg);
        transition: opacity 0.2s ease,
                    top 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s,
                    right 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s,
                    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s;
    }

    .bonus-tooltip-wrapper .bonus-help-icon {
        font-size: 0.65rem;
    }

    .bonus-tooltip {
        white-space: normal;
        max-width: 200px;
    }

    /* Стрелки */
    .pricing-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid #e2e8f0;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
        line-height: 1;
        color: #64748b;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        transition: all 0.2s ease;
    }

    .pricing-arrow:hover {
        background: #fff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    }

    .pricing-arrow--left {
        left: 2px;
    }

    .pricing-arrow--right {
        right: 2px;
    }

    .pricing-arrow.hidden {
        opacity: 0;
        pointer-events: none;
    }

    /* Секция и заголовок */
    .pricing-section {
        padding: 2rem 0;
        max-width: none;
    }

    .pricing-page-title {
        font-size: 1.75rem;
    }

    .section-header {
        margin-bottom: 1.25rem;
    }
}
