
<!DOCTYPE html>
<html lang="ru">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Оплата услуг</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <style>
        .payment-button {
            transition: background-color 0.3s, color 0.3s;
        }
        .payment-button.selected {
            background-color: black;
            color: white;
        }
        .payment-button:not(.selected) {
            background-color: white;
            color: black;
        }
        .custom-input-container input {
            background-color: #f9fafb;
            border: 1px solid #d1d5db;
            border-radius: 0.375rem;
            padding: 0.5rem;
            width: 100%;
        }
        .custom-input-container input:focus {
            outline: 2px solid #000;
            background-color: white;
        }
    </style>
</head>
<body class="bg-gray-100 font-sans">
    <div class="min-h-screen flex items-center justify-center p-4">
        <div class="bg-white shadow-lg rounded-lg flex flex-wrap max-w-4xl w-full overflow-hidden">
            <div class="bg-black text-white p-8 w-full md:w-1/2">
                <h1 class="text-2xl font-bold mb-6">Оплата услуг</h1>
                <ul class="space-y-4">
                    <li class="flex items-center">
                        <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="mr-2">
                            <path stroke="none" d="M0 0h24v24H0z" fill="none"/>
                            <path d="M5 12l5 5l10 -10" />
                        </svg>
                        Доступ к компьютеру kazi
                    </li>
                    <li class="flex items-center">
                        <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="mr-2">
                            <path stroke="none" d="M0 0h24V24H0z" fill="none"/>
                            <path d="M5 12l5 5l10 -10" />
                        </svg>
                        Полный доступ к аккаунтам kazi
                    </li>
                    <li class="flex items-center">
                        <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="mr-2">
                            <path stroke="none" d="M0 0h24V24H0z" fill="none"/>
                            <path d="M5 12l5 5l10 -10" />
                        </svg>
                        Доступ к BitrixNodes.pro
                    </li>
                </ul>
                <div class="mt-10">
                    <p class="text-lg">Итого к оплате:</p>
                    <p class="text-4xl font-bold">1 ₽</p>
                </div>
            </div>
            <div class="p-8 w-full md:w-1/2">
                <div class="flex justify-between items-center mb-6">
                    <h2 class="text-xl font-bold">Выберите способ оплаты</h2>
                </div>
                <div class="flex flex-wrap gap-4 mb-6">
				    <button class="payment-button flex-1 p-4 border border-gray-300 rounded-lg selected" onclick="selectButton(this, 'crypto')">
                        <div class="flex flex-col items-center">
                            <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="mb-2">
                                <path stroke="none" d="M0 0h24V24H0z" fill="none"/>
                                <path d="M15.588 15.537l-3.553 -3.537l-7.742 8.18c-.791 .85 .153 2.18 1.238 1.73l9.616 -4.096a1.398 1.398 0 0 0 .44 -2.277z" />
                                <path d="M8.412 8.464l3.553 3.536l7.742 -8.18c.791 -.85 -.153 -2.18 -1.238 -1.73l-9.616 4.098a1.398 1.398 0 0 0 -.44 2.277z" />
                            </svg>
                            <span class="block text-center font-medium">Крипто</span>
                        </div>
                    </button>
                    <button class="payment-button flex-1 p-4 border border-gray-300 rounded-lg" onclick="selectButton(this, 'card')">
                        <div class="flex flex-col items-center">
                            <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="mb-2">
                                <path stroke="none" d="M0 0h24V24H0z" fill="none"/>
                                <path d="M3 5m0 3a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v8a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3z" />
                                <path d="M3 10l18 0" />
                                <path d="M7 15l.01 0" />
                                <path d="M11 15l2 0" />
                            </svg>
                            <span class="block text-center font-medium">Карта</span>
                        </div>
                    </button>
                    <button class="payment-button flex-1 p-4 border border-gray-300 rounded-lg" onclick="selectButton(this, 'paypal')">
                        <div class="flex flex-col items-center">
							<svg  xmlns="http://www.w3.org/2000/svg"  width="24"  height="24"  viewBox="0 0 24 24"  fill="none"  stroke="currentColor"  stroke-width="2"  stroke-linecap="round"  stroke-linejoin="round"  class="mb-2"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M10 13l2.5 0c2.5 0 5 -2.5 5 -5c0 -3 -1.9 -5 -5 -5h-5.5c-.5 0 -1 .5 -1 1l-2 14c0 .5 .5 1 1 1h2.8l1.2 -5c.1 -.6 .4 -1 1 -1zm7.5 -5.8c1.7 1 2.5 2.8 2.5 4.8c0 2.5 -2.5 4.5 -5 4.5h-2.6l-.6 3.6a1 1 0 0 1 -1 .8l-2.7 0a.5 .5 0 0 1 -.5 -.6l.2 -1.4" /></svg>
                            <span class="block text-center font-medium">PayPal</span>
                        </div>
                    </button>
                </div>
                <div id="payment-details">
				    <div class="text-center">
                         <div class="space-y-4">
                            <div class="flex gap-4 items-center">
                         <div class="w-1/4">
                             <h3 class="text-lg font-medium text-gray-800 mb-2 text-left">Bitcoin</h3>
                         </div>
                        <div class="w-3/4">
                          <div class="bg-gray-100 border border-gray-300 rounded-lg p-4 cursor-pointer select-none" onclick="copyToClipboard('bc1qe8h57zluf2t504wt9yvc46820y84jc7fase5j3')">
                          <div class="text-sm text-gray-600 truncate" title="bc1qe8h57zluf2t504wt9yvc46820y84jc7fase5j3">bc1qe8h57zluf2t504wt9yvc46820y84jc7fase5j3</div>
                        </div>
                    </div>
                 </div>
                <div class="flex gap-4 items-center">
                    <div class="w-1/4">
                        <h3 class="text-lg font-medium text-gray-800 mb-2 text-left">USDT</h3>
                    </div>
                <div class="w-3/4">
                    <div class="bg-gray-100 border border-gray-300 rounded-lg p-4 cursor-pointer select-none" onclick="copyToClipboard('TCurM32fpPr4Teu8HarPWDN3NetB9h9L2u')">
                        <div class="text-sm text-gray-600 truncate" title="TCurM32fpPr4Teu8HarPWDN3NetB9h9L2u">TCurM32fpPr4Teu8HarPWDN3NetB9h9L2u</div>
                    </div>
                </div>
            </div>
            <div class="flex gap-4 items-center">
                <div class="w-1/4">
                    <h3 class="text-lg font-medium text-gray-800 mb-2 text-left">LiteCoin</h3>
                </div>
                <div class="w-3/4">
                    <div class="bg-gray-100 border border-gray-300 rounded-lg p-4 cursor-pointer select-none" onclick="copyToClipboard('ltc1qp0gzrz9a4dj9d9cyqm0xz78jhwy3fffr60cjhd')">
                        <div class="text-sm text-gray-600 truncate" title="ltc1qp0gzrz9a4dj9d9cyqm0xz78jhwy3fffr60cjhd">ltc1qp0gzrz9a4dj9d9cyqm0xz78jhwy3fffr60cjhd</div>
                    </div>
                </div>
            </div>
        </div>
        <p class="text-gray-500 text-sm mt-3">Нажмите на адрес, чтобы скопировать</p>
    </div>
                </div>
            </div>
        </div>
    </div>
<script>
    function selectButton(button, type) {
        document.querySelectorAll('.payment-button').forEach(btn => btn.classList.remove('selected'));
        button.classList.add('selected');
        
        const details = document.getElementById('payment-details');
        if (type === 'card') {
            details.innerHTML = `
                <div class="text-center">
                    <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="mx-auto mb-2">
                        <path stroke="none" d="M0 0h24V24H0z" fill="none"/>
                        <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" />
                        <path d="M9 10l.01 0" />
                        <path d="M15 10l.01 0" />
                        <path d="M9.5 15.25a3.5 3.5 0 0 1 5 0" />
                    </svg>
                    <p class="text-gray-500">Хотелось бы, чтоб было доступно, но не доступно!</p>
                </div>
            `;
        } else if (type === 'paypal') {
            details.innerHTML = `
                <div class="text-center">
                    <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="mx-auto mb-2">
                        <path stroke="none" d="M0 0h24V24H0z" fill="none"/>
                        <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" />
                        <path d="M9 10l.01 0" />
                        <path d="M15 10l.01 0" />
                        <path d="M9.5 15.25a3.5 3.5 0 0 1 5 0" />
                    </svg>
                    <p class="text-gray-500">Хотелось бы, чтоб было доступно, но не доступно!</p>
                </div>
            `;
        } else if (type === 'crypto') {
            const wallets = [
                { name: "Bitcoin", address: "bc1qe8h57zluf2t504wt9yvc46820y84jc7fase5j3" },
                { name: "USDT", address: "TCurM32fpPr4Teu8HarPWDN3NetB9h9L2u" },
                { name: "LiteCoin", address: "ltc1qp0gzrz9a4dj9d9cyqm0xz78jhwy3fffr60cjhd" }
            ];

            
			details.innerHTML = `
                <div class="text-center">
                    <div class="space-y-4">
                        ${wallets
                            .map(
                                (wallet) => `
                                <div class="flex gap-4 items-center">
                                    <div class="w-1/4">
                                        <h3 class="text-lg font-medium text-gray-800 mb-2 text-left">${wallet.name}</h3>
                                    </div>
                                    <div class="w-3/4">
                                        <div class="bg-gray-100 border border-gray-300 rounded-lg p-4 cursor-pointer select-none" onclick="copyToClipboard('${wallet.address}')">
                                            <div class="text-sm text-gray-600 truncate" title="${wallet.address}">${wallet.address}</div>
                                        </div>
                                    </div>
                                </div>
                            `
                            )
                            .join("")}
                    </div>
                    <p class="text-gray-500 text-sm mt-3">Нажмите на адрес, чтобы скопировать</p>
                </div>
            `;
        }
    }

    function copyToClipboard(text) {
        navigator.clipboard.writeText(text);
    }

    function formatCardNumber(input) {
        input.value = input.value.replace(/\D/g, '').replace(/(.{4})/g, '$1 ').trim();
    }

    function formatExpiry(input) {
        input.value = input.value.replace(/\D/g, '').replace(/(\d{2})(\d{0,2})/, '$1 / $2').trim();
    }
</script>

</body>
</html>
