* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 450px;
}

.payment-box {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #4CAF50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
    /*animation: bounce 0.5s ease-out;*/
}
/*
@keyframes bounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
*/
h1 {
    color: #333;
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: 600;
}

.amount-block {
    background: #f5f7fa;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.label {
    color: #666;
    font-size: 16px;
}

.amount {
    color: #333;
    font-size: 42px;
    font-weight: 700;
}

.pay-button {
    background: #FFC107;
    color: #333;
    border: none;
    border-radius: 12px;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.pay-button:hover {
    background: #FFB300;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

.pay-button:active {
    transform: translateY(0);
}

.loader {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 10;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.loader.active {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error {
    color: #f44336;
    background: #ffebee;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    display: none;
}

.error.active {
    display: block;
}

.footer {
    text-align: center;
    margin-top: 20px;
    color: white;
}

.company-info {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.offer-link {
    color: white;
    text-decoration: underline;
    font-size: 14px;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.offer-link:hover {
    opacity: 1;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

.offer-text {
    margin-top: 20px;
    line-height: 1.6;
}

.offer-text p {
    margin-bottom: 15px;
}

.error-container {
	background: white;
	border-radius: 20px;
	padding: 40px;
	text-align: center;
	max-width: 450px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
	margin: 0 auto;
}
.error-icon {
	width: 80px;
	height: 80px;
	background: #ff5252;
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 40px;
	margin: 0 auto 20px;
}
.example {
	background: #f5f7fa;
	border-radius: 10px;
	padding: 15px;
	font-family: monospace;
	color: #333;
	word-break: break-all;
	margin: 20px 0;
}
.info {
	margin-top: 20px;
	font-size: 14px;
	color: #999;
}

/* Адаптивность */
@media (max-width: 480px) {
    .payment-box {
        padding: 30px 20px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .amount {
        font-size: 36px;
    }
    
    .pay-button {
        font-size: 16px;
        padding: 16px 30px;
    }
}