.pay-caption {
    display: flex;
    gap: 20px;
    margin: 0 0 50px;
    padding: 0;
    list-style: none;
}

.pay-caption li a {
    display: flex;
    height: 50px;
    border: 1px solid #990001;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    color: #000;
    text-align: center;
    padding: 0 30px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pay-caption li a:hover,
.pay-caption li a.active {
    background: #990001;
    color: #fff;
}

.sbp-iframe {
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 0 50px;
}

.yoomoney-payment-form {
    padding: 0 !important;
    margin: 0 0 50px !important;
}

.yoomoney-payment-form .ym-payment-btn-block {
    height: auto !important;
}

.tab-pay-online {
    display: none;
}

.tab-pay-online.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Адаптив */
@media (max-width: 1259px) {
    .sbp-iframe {
        height: 700px;
    }
}

@media (max-width: 767px) {
    .pay-caption {
        flex-direction: column;
        gap: 10px;
        margin: 0 0 30px;
    }
    
    .pay-caption li a {
        padding: 0 15px;
        font-size: 14px;
    }
    
    .yoomoney-payment-form {
        margin: 0 0 30px !important;
    }
    
    .sbp-iframe {
        display: none;
    }
    
    .sbp-mobile-only {
        display: block;
        margin-bottom: 30px;
    }
    
    .sbp-alternative {
        display: none;
    }
}

@media (min-width: 768px) {
    .sbp-mobile-only {
        display: none;
    }
}
