/* --- P2P SPECIFIC PAGE STYLES --- */

/* Контейнер и отступы страницы */
.p2p-page {
    padding-top: 20px;
    padding-bottom: 60px;
}

.content-wrap {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 50px 0;
}

.section.compact {
    padding: 35px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 26px;
}

.section-title h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-muted);
    max-width: 780px;
    margin: 0 auto;
}

/* Желтый информационный блок */
.info-band {
    background: rgba(255, 177, 26, 0.08);
    border: 1px dashed rgba(255, 177, 26, 0.7);
    border-radius: 12px;
    padding: 18px;
    color: #cfd6df;
    max-width: 920px;
    margin: 24px auto 0;
}

.info-band strong {
    color: var(--text-main);
}

/* Steps (How it works) */
.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: transform 0.2s, border-color 0.2s;
    height: 100%;
}

.step-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 177, 26, 0.55);
}

.step-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.step-num {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255, 177, 26, 0.10);
    border: 1px solid rgba(255, 177, 26, 0.22);
    color: var(--primary);
    font-weight: 800;
}

.step-card h3 {
    font-size: 16px;
    line-height: 1.35;
    margin: 0;
}

.step-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.65;
    margin-top: 10px;
}

/* Two-column panels (Risks / Fees) */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 24px;
}

.panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
}

.panel h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.panel p,
.panel li {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

.panel ul {
    margin-top: 10px;
}

.panel li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 18px;
}

.panel li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    position: absolute;
    left: 4px;
    top: 9px;
    opacity: 0.9;
}

/* P2P Compare table */
.p2p-compare {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(30, 35, 41, 0.25);
    margin-top: 22px;
}

.p2p-compare table {
    width: 100%;
    border-collapse: collapse;
    min-width: 820px;
    font-size: 14px;
}

.p2p-compare th,
.p2p-compare td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

.p2p-compare th {
    position: sticky;
    top: 0;
    background: rgba(30, 35, 41, 0.85);
    color: var(--text-muted);
    font-weight: 600;
    z-index: 2;
}

.p2p-compare .mut {
    color: var(--text-muted);
}

.p2p-compare .good {
    color: var(--accent-green);
    font-weight: 700;
}

.p2p-compare .warn {
    color: var(--primary);
    font-weight: 700;
}

/* Mini action row */
.mini-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 18px;
}

/* Media Queries для P2P */
@media (max-width: 900px) {
    .steps {
        grid-template-columns: 1fr;
    }

    .two-col {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 28px;
    }
}