.catalog-page {
    padding-top: 40px;
    padding-bottom: 80px;
}

.catalog-hero {
    text-align: center;
    margin-bottom: 60px;
}

.catalog-hero h1 {
    font-size: 38px;
    margin-bottom: 15px;
}

.catalog-hero p {
    color: var(--text-muted);
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--text-main);
}

.filter-btn.active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    font-weight: 700;
}

/* Catalog Grid */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

/* Exchange Card */
.exch-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}

.exch-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: #3e4550;
}

.featured-card {
    border: 1px solid rgba(255, 177, 26, 0.4);
    background: linear-gradient(180deg, rgba(255, 177, 26, 0.05) 0%, var(--bg-card) 40%);
}

.featured-card:hover {
    border-color: var(--primary);
}

.exch-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: #000;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.exch-badge.simple {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

/* старое определение (оставляем, чтобы не сломать, ниже будет override) */
.exch-card-top {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.exch-card-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.exch-card-title h3 {
    margin: 0 0 5px 0;
    font-size: 20px;
}

.stars {
    color: var(--primary);
    font-size: 14px;
    letter-spacing: 1px;
}

.stars span {
    color: var(--text-muted);
    margin-left: 5px;
    font-size: 12px;
    letter-spacing: 0;
}

.exch-card-body {
    flex-grow: 1;
    margin-bottom: 24px;
}

.exch-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.5;
}

.exch-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.exch-tags span {
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-muted);
}

.exch-card-footer {
    display: flex;
    gap: 10px;
}

.btn-full {
    flex: 1;
    white-space: nowrap;
}

/* Selection Guide (SEO Block) */
.selection-guide {
    background: linear-gradient(135deg, #161b22 0%, #0e1116 100%);
    padding: 60px 40px;
    border-radius: 24px;
    border: 1px solid var(--border);
}

.selection-guide h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
}

.guide-steps-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.guide-step {
    display: felx;
    justify-content: center;
}

.step-img {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.step-img img {
    max-height: 150px;
    width: 70%;

}

.center-link p {
    margin-bottom: 20px;
}

.guide-step h3 {
    color: var(--text-main);
    margin-bottom: 10px;
    font-size: 18px;
}

.guide-step p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* Top bar: brand + rating (override, как в исходнике) */
.exch-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Wordmark container */
.exch-wordmark {
    min-width: 140px;
    max-width: 190px;
    display: flex;
    align-items: center;
}

.exch-wordmark-img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    display: block;
    min-height: 40px;
    max-height: 40px;
}

/* Rating block (right) */
.exch-rating {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.exch-rating .stars {
    color: var(--primary);
    font-size: 14px;
    letter-spacing: 1px;
    line-height: 1;
}

.exch-rating .score {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .catalog-hero h1 {
        font-size: 28px;
    }

    .filter-bar {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 14px;
        font-size: 12px;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .selection-guide {
        padding: 30px 20px;
    }

    .guide-steps-row {
        gap: 30px;
    }
}

/* Mobile tweak */
@media (max-width: 520px) {
    .exch-wordmark {
        min-width: 120px;
        max-width: 160px;
        height: 38px;
        padding: 7px 10px;
        border-radius: 12px;
    }
}