/* ═══════════════════════════════════════
   PROJECT SHOWCASE PAGE STYLES
   ═══════════════════════════════════════ */

:root {
    --red: #B70000;
    --red-dark: #8f0000;
    --text: #1e1e1e;
    --muted: #666;
    --hint: #999;
    --border: #E5E5E5;
    --bg: #F7F7F7;
    --white: #FFFFFF;
    --radius: 16px;
    --radius-sm: 10px;
}

/* ── Hero ── */
.hero {
    background: var(--white);
    text-align: center;
    padding: 48px 24px 40px;
    border-bottom: 1px solid var(--border);
}

.hero-badge {
    display: inline-block;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.hero p {
    font-size: clamp(14px, 1.5vw, 16px);
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Filters ── */
.filters-wrap {
    background: var(--bg);
    padding: 24px 24px 0;
    display: flex;
    justify-content: center;
}

.filters {
    display: flex;
    gap: 8px;
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 6px;
    border: 1px solid var(--border);
}

.filter-btn {
    padding: 10px 24px;
    border: none;
    background: transparent;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    border-radius: 8px;
    transition: all .2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.filter-btn.active {
    background: var(--text);
    color: var(--white);
}

.filter-btn:hover:not(.active) {
    color: var(--text);
    background: var(--bg);
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--border);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
}

.filter-btn.active .filter-badge {
    background: rgba(255,255,255,.2);
    color: var(--white);
}

/* ── Content ── */
.content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px 60px;
}

/* ── Empty ── */
.empty-state {
    text-align: center;
    padding: 80px 24px;
    color: var(--muted);
}

.empty-state .icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 16px;
}

/* ── Grid ── */
.proj-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ── Card ── */
.proj-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .2s;
}

.proj-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,.08);
    transform: translateY(-2px);
}

/* Превью */
.proj-thumb {
    width: 100%;
    aspect-ratio: 16/10;
    position: relative;
    overflow: hidden;
}

.proj-thumb-bg {
    width: 100%;
    height: 100%;
    display: block;
    background-size: cover;
    background-position: center;
}

.proj-avatar {
    position: absolute;
    bottom: -20px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid var(--white);
    background: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 2;
}

.proj-avatar svg {
    width: 24px;
    height: 24px;
    stroke: #888;
    fill: none;
    stroke-width: 1.5;
}

/* Тело карточки */
.proj-body {
    padding: 28px 20px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.proj-source {
    font-size: 11px;
    font-weight: 600;
    color: var(--hint);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 8px;
}

.proj-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.proj-desc {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.55;
    flex: 1;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Суммы */
.amounts-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.amount-badge {
    flex: 1;
    min-width: 110px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}

.amount-badge .lbl {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--hint);
    letter-spacing: .05em;
    margin-bottom: 4px;
}

.amount-badge .val {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

/* Footer карточки */
.proj-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.investors-lbl {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.more-link {
    font-size: 14px;
    color: var(--hint);
    background: none;
    border: none;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    padding: 0;
    font-weight: 500;
    transition: color .2s;
    text-decoration: none;
}

.more-link:hover {
    color: var(--red);
}

/* ── Pagination ── */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--border);
    background: var(--white);
    border-radius: var(--radius-sm);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
}

.page-btn:hover {
    border-color: var(--red);
    color: var(--red);
}

.page-btn.active {
    background: var(--text);
    border-color: var(--text);
    color: var(--white);
}

.page-btn.disabled {
    opacity: .35;
    pointer-events: none;
}

/* Responsive */
@media(max-width:1024px) {
    .proj-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:768px) {
    .content {
        padding: 24px 16px 48px;
    }
    .filters-wrap {
        padding: 16px 16px 0;
    }
}

@media(max-width:640px) {
    .proj-grid {
        grid-template-columns: 1fr;
    }
}

