/* =========================================
   БАЗОВЫЕ СТИЛИ И СБРОС
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #f4f6f9;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* =========================================
   ГЛАВНАЯ СТРАНИЦА (index.php)
   ========================================= */
.main-card {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 600px;
}

.header-info h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.content {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.product-img img {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

.details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    justify-content: center;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.detail-row .label {
    color: #666;
    margin-right: 10px;
}

.detail-row .value {
    color: #000;
    font-weight: 500;
    text-align: right;
}

.payment-info {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.payment-info h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.payment-info p {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

.price-box {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    margin-bottom: 15px;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background-color: #003b5c;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary:hover {
    background-color: #002a42;
}

.footer-info {
    text-align: center;
    font-size: 12px;
    color: #888;
}

/* =========================================
   ВЫБОР БАНКА (bank.php)
   ========================================= */
.bank-card {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 800px;
    text-align: center;
}

.top-info {
    background: #f4f6f9;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 14px;
}

.payment-card {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.method-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 30px 20px;
    width: 280px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.method-item:hover {
    border-color: #003b5c;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.method-item img {
    max-width: 140px;
    max-height: 70px;
    object-fit: contain;
    margin-bottom: 20px;
}

.method-item .method-text {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-top: auto;
}

.method-item .method-subtext {
    font-size: 14px;
    color: #0084ff;
    font-weight: bold;
    margin-top: 5px;
}

/* =========================================
   БЛОК БЕЗОПАСНОСТИ OLX (index.php)
   ========================================= */
.small-text {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
}

.security-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.security-header h3 {
    margin-bottom: 0;
    font-size: 16px;
}

.badge {
    background-color: #ffd500;
    color: #333;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 3px;
    text-transform: uppercase;
}

.security-content p {
    font-size: 13px;
    margin-bottom: 10px;
    color: #333;
}

.security-content .small-text {
    color: #666;
    font-size: 12px;
    line-height: 1.5;
}

ul.check-list {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}

ul.check-list li {
    position: relative;
    padding-left: 20px;
    font-size: 12px;
    color: #444;
    margin-bottom: 10px;
    line-height: 1.5;
}

ul.check-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #0084ff;
    font-weight: bold;
}

ul.dot-list {
    padding-left: 20px;
    font-size: 12px;
    color: #444;
    line-height: 1.5;
}

ul.dot-list li {
    margin-bottom: 5px;
}

/* =========================================
   АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ
   ========================================= */
@media (max-width: 768px) {
    body {
        padding: 10px;
        align-items: flex-start;
    }
    .main-card, .bank-card {
        padding: 20px;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }
    .content {
        flex-direction: column;
        align-items: center;
        text-align: left;
        gap: 15px;
    }
    .product-img img {
        width: 120px;
        height: 120px;
    }
    .detail-row {
        font-size: 13px;
    }
    .payment-info {
        padding: 15px;
    }
    .payment-card {
        flex-direction: column;
        gap: 15px;
    }
    .method-item {
        width: 100%;
        min-height: 150px;
        padding: 20px;
    }
}