/* ===================================
   PAYMENT PAGES STYLES
   Стили для страниц оплаты и успеха
   В стиле Астро Календарь Premium
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Cormorant+Garamond:wght@300;400;500;600&display=swap');

/* ===================================
   СТРАНИЦА ОПЛАТЫ
   =================================== */

.payment-page-container {
    max-width: 680px;
    margin: 30px auto;
    padding: 20px;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    z-index: 2;
}

.payment-card {
    background: #FFFFFF;
    border-radius: 0;
    box-shadow: 0 10px 40px rgba(139, 111, 71, 0.15);
    padding: 50px 30px;
    position: relative;
    transition: all 0.4s ease;
}

.payment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8B6F47, #D4A574);
}

.payment-header {
    text-align: center;
    margin-bottom: 5px;
    border-bottom: 1px solid rgba(139, 111, 71, 0.1);
    padding-bottom: 10px;
}

.payment-header h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
    font-weight: 400;
    color: #3A3A3A;
    margin-bottom: 15px;
    line-height: 1.2;
}

.secure-badge {
    display: inline-block;
    background: rgba(139, 111, 71, 0.08);
    color: #8B6F47;
    padding: 8px 20px;
    border-radius: 0;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid rgba(139, 111, 71, 0.2);
}

.purchase-details {
    margin-bottom: 40px;
}

.product-info {
    text-align: center;
    padding: 10px 30px;
    border-radius: 0;
    margin-bottom: 30px;
    border: 1px solid rgba(139, 111, 71, 0.6);
}

.product-info h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 500;
    color: #8B6F47;
    margin: 10px;
}

.product-info p {
    color: #6B6B6B;
    font-size: 15px;
    line-height: 1.6;
    margin: 5px 0 0;
}

.price-block {
    background: linear-gradient(135deg, #FFF8F0, #FFFFFF);
    border: 2px solid rgba(139, 111, 71, 0.15);
    border-radius: 0;
    padding: 30px 20px;
    margin-bottom: 30px;
    text-align: center;
}

.price-row {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 15px;
}

.price-row .label {
    font-size: 13px;
    color: #6B6B6B;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.price-current {
    font-family: 'Cormorant Garamond', serif;
    font-size: 56px;
    font-weight: 600;
    color: #FF6B6B;
    line-height: 1;
}

.payment-info {
    margin-top: 30px;
}

.payment-info h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 500;
    color: #3A3A3A;
    margin-bottom: 20px;
    text-align: center;
}

.payment-info ul {
    list-style: none;
    padding: 0;
    max-width: 500px;
    margin: 0 auto;
}

.payment-info li {
    padding: 12px 0;
    color: #6B6B6B;
    font-size: 15px;
    line-height: 1.6;
    border-bottom: 1px solid rgba(139, 111, 71, 0.08);
}

.payment-info li:last-child {
    border-bottom: none;
}

.btn-pay,
.btn-pay-now {
    width: 100%;
    background: linear-gradient(135deg, #9A7D55, #D4A574);
    color: white;
    border: none;
    padding: 20px;
    border-radius: 0;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-family: 'Montserrat', sans-serif;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-pay::before,
.btn-pay-now::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #9A7D55, #D4A574);
    transition: left 0.4s ease;
    z-index: -1;
}

.btn-pay:hover,
.btn-pay-now:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(139, 111, 71, 0.3);
}

.btn-pay:hover::before,
.btn-pay-now:hover::before {
    left: 0;
}

.btn-back {
    width: 100%;
    background: transparent;
    color: #8B6F47;
    border: 2px solid #8B6F47;
    padding: 14px;
    border-radius: 0;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    margin-top: 15px;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #8B6F47;
    transition: width 0.4s ease;
    z-index: -1;
}

.btn-back:hover {
    color: white;
}

.btn-back:hover::before {
    width: 100%;
}

.instructions {
    margin: 40px 0;
}

.instruction-step {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border: 1px solid #D4A574;
    border-radius: 12px;
}

.instruction-step:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.step-number {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #9A7D55, #D4A574);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(139, 111, 71, 0.2);
}

.step-content h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #3A3A3A;
    margin-bottom: 5px;
    text-transform: none;
}

.step-content p {
    color: #6B6B6B;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

.payment-details-box {
    background: #FFF8F0;
    border-radius: 0;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(139, 111, 71, 0.15);
}

.payment-details-box h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 500;
    color: #3A3A3A;
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(139, 111, 71, 0.08);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row span:first-child {
    color: #6B6B6B;
    font-weight: 500;
}

.detail-row span:last-child {
    font-weight: 500;
    color: #3A3A3A;
}

.security-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.security-item {
    text-align: center;
    padding: 25px;
    background: #FFFFFF;
    border: 1px solid rgba(139, 111, 71, 0.1);
    transition: all 0.3s ease;
}

.security-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 111, 71, 0.1);
}

.security-item span {
    font-size: 36px;
    display: block;
    margin-bottom: 12px;
    filter: grayscale(20%);
}

.security-item p {
    font-size: 12px;
    color: #6B6B6B;
    line-height: 1.5;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===================================
   СТРАНИЦА УСПЕХА
   =================================== */

.payment-result {
    max-width: 700px;
    margin: 60px auto;
    padding: 20px;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    z-index: 2;
}

.result-card {
    background: #FFFFFF;
    border-radius: 0;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(139, 111, 71, 0.15);
    position: relative;
}

.result-card.success::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4caf50, #2e7d32);
}

.result-card.error::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d32f2f, #b71c1c);
}

.success-animation {
    margin-bottom: 40px;
}

.checkmark-circle {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(46, 125, 50, 0.3);
}

@keyframes scaleIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.checkmark {
    color: white;
    font-size: 64px;
    font-weight: bold;
    animation: checkmark 0.4s ease-out 0.3s forwards;
    opacity: 0;
}

@keyframes checkmark {
    to { opacity: 1; }
}

.result-card h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 48px;
    font-weight: 500;
    color: #3A3A3A;
    margin-bottom: 15px;
    line-height: 1.2;
}

.result-card .subtitle {
    font-size: 16px;
    color: #6B6B6B;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.purchase-info {
    background: #FFF8F0;
    border-radius: 0;
    padding: 30px;
    margin: 40px 0;
    text-align: left;
    border: 1px solid rgba(139, 111, 71, 0.1);
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(139, 111, 71, 0.08);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    color: #6B6B6B;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

.info-row .value {
    color: #3A3A3A;
    font-weight: 600;
    font-size: 14px;
}

.next-steps {
    margin: 40px 0;
}

.next-steps h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 500;
    color: #3A3A3A;
    margin-bottom: 25px;
}

.steps-list {
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px;
    margin-bottom: 15px;
    background: #FFF8F0;
    border-radius: 0;
    border-left: 3px solid #8B6F47;
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateX(5px);
    background: #FFF0E0;
}

.step-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.step span:last-child {
    color: #6B6B6B;
    font-size: 14px;
    line-height: 1.6;
}

.actions {
    margin: 40px 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 20px 50px;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-family: 'Montserrat', sans-serif;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: #8B6F47;
    color: white;
    border: none;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #6B5637;
    transition: left 0.4s ease;
    z-index: -1;
}

.btn-primary:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(139, 111, 71, 0.3);
}

.btn-primary:hover::before {
    left: 0;
}

.btn-large {
    font-size: 14px;
    padding: 22px 60px;
}

.email-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
    padding: 18px;
    background: rgba(139, 111, 71, 0.05);
    border-radius: 0;
    border: 1px solid rgba(139, 111, 71, 0.1);
}

.email-notice span {
    font-size: 24px;
}

.email-notice p {
    color: #6B6B6B;
    font-size: 13px;
    margin: 0;
    letter-spacing: 0.5px;
}

.additional-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.info-card {
    background: #FFFFFF;
    border-radius: 0;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(139, 111, 71, 0.1);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 111, 71, 0.1);
}

.info-card h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #3A3A3A;
    margin-bottom: 12px;
}

.info-card p {
    font-size: 13px;
    color: #6B6B6B;
    line-height: 1.7;
    margin: 0;
}

.result-card.error .icon {
    font-size: 72px;
    margin-bottom: 25px;
}





/* ===================================
   СПЕЦИАЛЬНЫЕ ЦЕНЫ
   =================================== */

.price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.price-old {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
}

.special-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: white;
    padding: 6px 15px;
    border-radius: 0;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}


/* ===================================
   АДАПТАЦИЯ ДЛЯ МОБИЛЬНЫХ
   =================================== */

@media (max-width: 768px) {
    .payment-page-container,
    .payment-result {
        margin: 30px 2px;
        padding: 8px;
    }
    
    .payment-card,
    .result-card {
        padding: 30px 10px;
    }
    
    .payment-header h1,
    .result-card h1 {
        font-size: 32px;
    }
    
    .product-info h2 {
        font-size: 26px;
    }
    
    .price-current {
        font-size: 42px;
    }
    
    .security-info,
    .additional-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .instruction-step {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        text-align: center;
    }
    
    .step-number {
        margin-bottom: 10px;
    }
    
    .btn-large {
        padding: 18px 40px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .payment-header h1,
    .result-card h1 {
        font-size: 28px;
    }
    
    .product-info h2 {
        font-size: 22px;
    }
    
    .price-current {
        font-size: 36px;
    }
    
    .security-item,
    .info-card {
        padding: 20px 15px;
    }
    
    .btn {
        padding: 16px 30px;
        font-size: 12px;
        letter-spacing: 2px;
    }
}

/* ===================================
   АНИМАЦИИ ЗАГРУЗКИ
   =================================== */

.payment-card,
.result-card {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.security-item,
.info-card {
    animation: fadeInUp 0.8s ease-out backwards;
}

.security-item:nth-child(1) { animation-delay: 0.2s; }
.security-item:nth-child(2) { animation-delay: 0.3s; }
.security-item:nth-child(3) { animation-delay: 0.4s; }

.info-card:nth-child(1) { animation-delay: 0.2s; }
.info-card:nth-child(2) { animation-delay: 0.3s; }
