/* Modern Payment Website Stylesheet with Bootstrap */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
    color: #333;
}

/* Красивый градиентный заголовок */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

hr {
    border: none;
    border-top: 2px solid #e0e0e0;
    margin: 20px 0;
}

/* Bootstrap кнопки с кастомными стилями */
.btn-nav {
    padding: 12px 8px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    white-space: normal;
    word-wrap: break-word;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    font-size: 14px;
    line-height: 1.3;
    text-align: center;
}

.btn-nav i {
    flex-shrink: 0;
    margin-right: 4px;
}

.btn-nav span {
    word-wrap: break-word;
    white-space: normal;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #5568d3 0%, #653a8b 100%);
}

/* Старые кнопки для совместимости */
.button {
    display: inline-block;
    padding: 12px 24px;
    margin: 8px 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.text {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin: 20px 0;
}

.text a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.text a:hover {
    color: #764ba2;
    text-decoration: underline;
}

form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin: 20px 0;
    border: 2px solid #e0e0e0;
}

/* Bootstrap кнопки в формах */
form .btn-primary {
    min-height: 50px;
    font-size: 20px;
    font-weight: 700;
}

form .btn-secondary {
    min-height: 50px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    border: none;
}

form .btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #343a40 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.6);
}

/* Кнопки оплаты - специальные стили для предотвращения выхода за границы */
.btn-payment {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    text-overflow: clip !important;
    display: block !important;
    box-sizing: border-box !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
}

input[type="text"] {
    width: 100%;
    max-width: 300px;
    padding: 15px;
    font-size: 18px;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin: 10px 0;
    transition: all 0.3s ease;
    font-family: inherit;
}

input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

input[type="submit"],
input[type="button"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    margin: 10px 5px;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

input[type="submit"]:hover,
input[type="button"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

input[type="submit"]:active,
input[type="button"]:active {
    transform: translateY(0);
}

strong {
    font-weight: 700;
    color: #333;
}

strong[style*="color:red"] {
    color: #dc3545 !important;
    display: block;
    padding: 15px;
    background: #fff3cd;
    border-left: 4px solid #dc3545;
    border-radius: 4px;
    margin: 15px 0;
}

h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 700;
}

small {
    color: #6c757d;
    font-size: 14px;
}

/* Table Styling */
table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
}

table td {
    padding: 12px;
    vertical-align: top;
}

table p {
    margin: 8px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 5px;
    }
    
    .main {
        padding: 15px;
        border-radius: 10px;
    }
    
    form {
        padding: 10px;
    }
    
    /* Заголовок на мобильных */
    .text-gradient {
        font-size: 2rem !important;
    }
    
    .lead {
        font-size: 1rem !important;
    }
    
    /* Кнопки на мобильных - исправление переноса текста */
    .btn-nav {
        padding: 10px 8px;
        font-size: 13px;
        min-height: 44px;
        white-space: normal;
        word-wrap: break-word;
    }
    
    .btn-nav span {
        white-space: normal;
        word-wrap: break-word;
    }
    
    .btn-nav i {
        margin-right: 3px;
    }
    
    .button {
        display: block;
        margin: 10px 0;
        text-align: center;
        padding: 10px 12px;
        font-size: 14px;
        word-wrap: break-word;
    }
    
    input[type="text"],
    input[type="submit"],
    input[type="button"] {
        width: 100%;
        max-width: none;
        font-size: 16px;
    }
    
    /* Кнопки формы на мобильных */
    form .btn-primary {
        font-size: 16px !important;
        min-height: 44px !important;
        padding: 10px 12px !important;
    }
    
    form .btn-secondary {
        font-size: 13px !important;
        min-height: 44px !important;
        padding: 10px 12px !important;
    }
    
    form .btn-lg {
        font-size: 16px !important;
        padding: 10px 12px !important;
    }
    
    /* Кнопки оплаты на мобильных */
    .btn-payment {
        font-size: 15px !important;
        min-height: 44px !important;
        padding: 10px 8px !important;
        line-height: 1.3 !important;
    }
    
    .btn-payment.btn-secondary {
        font-size: 13px !important;
    }
    
    /* Иконки Bootstrap на мобильных */
    .bi {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    /* Очень маленькие экраны */
    .btn-nav {
        font-size: 12px;
        padding: 8px 6px;
        min-height: 42px;
    }
    
    .text-gradient {
        font-size: 1.75rem !important;
    }
    
    /* Кнопки формы на очень маленьких экранах */
    form .btn-primary,
    form .btn-secondary,
    form .btn-lg {
        font-size: 14px !important;
        min-height: 42px !important;
        padding: 8px 10px !important;
    }
    
    form .btn-secondary {
        font-size: 12px !important;
    }
    
    /* Кнопки оплаты на очень маленьких экранах */
    .btn-payment {
        font-size: 13px !important;
        min-height: 42px !important;
        padding: 8px 6px !important;
        line-height: 1.2 !important;
    }
    
    .btn-payment.btn-secondary {
        font-size: 11px !important;
    }
}

/* Дополнительная адаптивность для средних экранов */
@media (min-width: 768px) and (max-width: 991px) {
    .btn-nav {
        font-size: 13px;
        padding: 10px 6px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .btn-nav {
        font-size: 13px;
        padding: 12px 6px;
    }
}

/* Additional styling for lists */
ol, ul {
    margin: 15px 0;
    padding-left: 30px;
}

ol li, ul li {
    margin: 8px 0;
    line-height: 1.6;
}

/* Payment form specific */
.mn {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Info blocks */
.text > strong:first-child {
    display: block;
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

/* Logo styling */
img[src*="logo"] {
    margin: 10px 0;
}

