.pricing-section {
    padding: 100px 0;
    color: var(--text-color);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
    background: rgba(20, 20, 20, 0.35);
    border-radius: 24px;
    padding: 40px 32px;
    backdrop-filter: blur(37.5px);
    -webkit-backdrop-filter: blur(37.5px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.4s cubic-bezier(0.45, 1.45, 0.49, 1.15);
}

.pricing-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(149deg, #fff -10%, rgba(255, 255, 255, 0.06) 20%, rgba(255, 255, 255, 0.06) 80%, #fff 130%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.pricing-card.premium {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(20, 20, 20, 0.35) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    transform: scale(1.05);
}

.pricing-card.premium:hover {
    transform: scale(1.05) translateY(-8px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: #fff;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.card-header {
    text-align: center;
    margin-bottom: 32px;
}

.plan-badge {
    display: inline-flex;
    margin-bottom: 16px;
}

.card-header h2 {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
}

.price .amount {
    font-size: 48px;
    font-weight: 600;
    background-image: linear-gradient(to bottom, #fff 50%, #979797);
    -webkit-background-clip: text;
    color: transparent;
}

.price .period {
    font-size: 18px;
    color: var(--text-desc);
}

.card-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: var(--text-other-color);
}

.feature i {
    font-size: 20px;
    color: #10b981;
    flex-shrink: 0;
}

.feature.disabled {
    opacity: 0.4;
}

.feature.disabled i {
    color: #ef4444;
}

.buy-button {
    width: 100%;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--text-color);
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.buy-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.buy-button.premium-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    border: none;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.buy-button.premium-btn:hover {
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.5);
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-color);
}

.faq-header {
    text-align: center;
    margin-bottom: 60px;
}

.faq-header .highlight {
    display: inline-flex;
    margin-bottom: 16px;
}

.faq-header h2 {
    font-size: 56px;
    font-weight: 500;
    letter-spacing: -1px;
    background-image: linear-gradient(to bottom, #fff 50%, #979797);
    -webkit-background-clip: text;
    color: transparent;
}

.faq-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.faq-item {
    background: rgba(20, 20, 20, 0.35);
    border-radius: 16px;
    padding: 32px;
    backdrop-filter: blur(37.5px);
    -webkit-backdrop-filter: blur(37.5px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateX(8px);
}

.faq-item h3 {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--text-color);
}

.faq-item p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-desc);
}


/* Модальное окно в стиле profile */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 20, 0.55);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: overlay-fade-in 0.3s cubic-bezier(.4,0,.2,1);
}

.key-popup {
    overflow: visible;
    width: 500px;
    max-width: 95vw;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border-radius: 32px;
    padding: 28px;
    backdrop-filter: blur(25px);
    background: rgb(20, 20, 20, 0.20);
    animation: popup-fade-in 0.38s cubic-bezier(0.45, 1.45, 0.49, 1.15);
}

.key-popup::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 32px;
    padding: 1px;
    background: linear-gradient(149deg, #fff -30%, #fff -60%, rgba(255, 255, 255, 0.06) 20%, rgba(255, 255, 255, 0.06) 80%, #fff 130%, #fff 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.other {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.popup-close {
    position: absolute;
    top: 18px;
    right: 22px;
    background: none;
    border: none;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.popup-close:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

.popup-info {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.other .text .popup-title {
    color: #fff;
    font-size: 24px;
    margin-bottom: 6px;
    font-weight: 500;
}

.other .text .popup-price {
    color: var(--text-other-color);
    font-size: 18px;
}

.promo-input {
    border: none;
    width: 100%;
    padding: 18px 22px;
    color: var(--text-color);
    font-weight: 400;
    background: transparent;
    font-size: 16px;
    outline: none;
    border-radius: 30px;
}

.promo-input::placeholder {
    color: var(--text-desc);
}

.wrapper {
    position: relative;
    border-radius: 30px;
    background: rgb(20, 20, 20, 0.50);
    box-shadow: 4px 7px 13.5px rgb(0, 0, 0, 0.15);
    margin-bottom: 20px;
    overflow: hidden;
}

.wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 30px;
    padding: 1px;
    background: linear-gradient(149deg, #fff -10%, #fff -60%, rgba(255, 255, 255, 0.06) 20%, rgba(255, 255, 255, 0.06) 80%, #fff 130%, #fff 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.payment-methods-popup {
    margin-bottom: 20px;
}

.payment-label {
    display: block;
    font-size: 16px;
    color: var(--text-other-color);
    margin-bottom: 12px;
    font-weight: 500;
}

.payment-options-popup {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.payment-option-popup {
    position: relative;
    cursor: pointer;
}

.payment-option-popup input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 12px;
    background: rgb(20, 20, 20, 0.50);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.45, 1.45, 0.49, 1.15);
    position: relative;
    overflow: hidden;
}

.payment-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(149deg, #fff -10%, #fff -60%, rgba(255, 255, 255, 0.06) 20%, rgba(255, 255, 255, 0.06) 80%, #fff 130%, #fff 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.payment-btn i {
    font-size: 24px;
}

.payment-option-popup input[type="radio"]:checked + .payment-btn {
    background: rgb(139, 92, 246, 0.25);
    transform: scale(1.05);
}

.payment-option-popup:hover .payment-btn {
    transform: scale(1.03);
}

.order-summary-popup {
    background: rgb(20, 20, 20, 0.50);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.order-summary-popup::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(149deg, #fff -10%, #fff -60%, rgba(255, 255, 255, 0.06) 20%, rgba(255, 255, 255, 0.06) 80%, #fff 130%, #fff 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.summary-row-popup {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    color: var(--text-other-color);
    margin-bottom: 12px;
}

.summary-row-popup:last-child {
    margin-bottom: 0;
}

.summary-row-popup.total-row {
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 18px;
    font-weight: 500;
    color: var(--text-color);
}

.popup-buy {
    align-items: center;
    position: relative;
    padding: 20px;
    border-radius: 35px;
    background: transparent;
    border: none;
    overflow: hidden;
    width: 100%;
    color: var(--text-color);
    font-size: 18px;
    background-color: rgb(20, 20, 20, 0.35);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.popup-buy::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 35px;
    padding: 1px;
    background: linear-gradient(149deg, #fff -30%, #fff -60%, rgba(255, 255, 255, 0.06) 20%, rgba(255, 255, 255, 0.06) 80%, #fff 130%, #fff 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.popup-buy:hover {
    transform: scale(1.03);
    background-color: rgb(20, 20, 20, 0.45);
}

.popup-buy i {
    font-size: 20px;
}

.payment-info-popup {
    text-align: center;
    font-size: 14px;
    color: var(--text-desc);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    margin-bottom: 0;
}

.payment-info-popup i {
    color: #10b981;
    font-size: 18px;
}

@keyframes popup-fade-in {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes overlay-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Промокод */
.promo-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
}

.promo-wrapper .promo-input {
    flex: 1;
}

.promo-check-btn {
    padding: 18px 24px;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.5);
    border-radius: 30px;
    color: var(--text-color);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.promo-check-btn:hover {
    background: rgba(139, 92, 246, 0.3);
    transform: scale(1.03);
}

.promo-result {
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
}

.promo-result.success {
    background: rgba(52, 199, 89, 0.15);
    border: 1px solid rgba(52, 199, 89, 0.3);
    color: #34c759;
}

.promo-result.error {
    background: rgba(255, 59, 48, 0.15);
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: #ff3b30;
}

/* Адаптив для модального окна */
@media (max-width: 768px) {
    .key-popup {
        padding: 24px;
        width: 90vw;
    }

    .other .text .popup-title {
        font-size: 22px;
    }

    .other .text .popup-price {
        font-size: 16px;
    }

    .payment-options-popup {
        grid-template-columns: 1fr;
    }

    .payment-btn {
        flex-direction: row;
        justify-content: flex-start;
        padding: 14px 18px;
    }
}


/* Адаптивность для основной страницы */
@media (max-width: 1024px) {
    .pricing-cards {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .pricing-card.premium {
        transform: scale(1);
    }

    .pricing-card.premium:hover {
        transform: scale(1) translateY(-8px);
    }
}

@media (max-width: 768px) {
    main {
        padding: 150px 6%;
        padding-bottom: 0;
    }

    .main-sect h1 {
        font-size: 42px;
    }

    .main-sect .highlight {
        font-size: 18px;
        padding: 6px 18px;
        margin: 0 10px;
    }

    .pricing-section {
        padding: 60px 0;
    }

    .pricing-cards {
        gap: 24px;
    }

    .pricing-card {
        padding: 32px 24px;
    }

    .card-header h2 {
        font-size: 28px;
    }

    .price .amount {
        font-size: 40px;
    }

    .faq-section {
        padding: 60px 0;
    }

    .faq-header h2 {
        font-size: 42px;
    }

    .faq-item {
        padding: 24px;
    }

    .faq-item h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .main-sect h1 {
        font-size: 32px;
    }

    .main-sect .highlight {
        font-size: 16px;
        padding: 5px 14px;
        margin: 0 8px;
    }

    .card-header h2 {
        font-size: 24px;
    }

    .price .amount {
        font-size: 36px;
    }

    .price .period {
        font-size: 16px;
    }

    .feature {
        font-size: 15px;
    }

    .buy-button {
        padding: 14px 24px;
        font-size: 16px;
    }

    .faq-header h2 {
        font-size: 36px;
    }

    .faq-item h3 {
        font-size: 18px;
    }

    .faq-item p {
        font-size: 15px;
    }
}
