/* ============================================
   ПОРТФОЛИО – страница со всеми проектами
   ============================================ */
.page-header {
    background: #0f2636;
    padding: 140px 0 60px;
    text-align: center;
    border-bottom: 1px solid #1a3042;
}
.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
}
.page-title span {
    color: #c9a96e;
}
.page-subtitle {
    font-size: 20px;
    font-weight: 300;
    color: #b0b8b8;
    margin-top: 10px;
}

/* ===== КНОПКА НАЗАД (слева над фильтрами) ===== */
.back-link {
    display: inline-block;
    color: #c9a96e;
    font-weight: 500;
    margin-bottom: 20px;
    transition: color 0.3s;
    text-align: left;
}
.back-link:hover {
    color: #dbb97c;
}
.back-link i {
    margin-right: 8px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 30px 0 40px;
}
.filter-btn {
    background: transparent;
    border: 1px solid #1e3a4a;
    color: #b0b8b8;
    padding: 8px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
}
.filter-btn:hover,
.filter-btn.active {
    background: #c9a96e;
    color: #0b1e2e;
    border-color: #c9a96e;
}

.portfolio-grid-page {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}
.portfolio-item {
    background: #142838;
    border-radius: 12px;
    overflow: hidden;
    border-bottom: 3px solid #c9a96e;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}
.portfolio-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.portfolio-item-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.portfolio-item-image .category-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #c9a96e;
    color: #0b1e2e;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}
.portfolio-item-content {
    padding: 20px;
}
.portfolio-item-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
}
.portfolio-item-content .location {
    font-size: 14px;
    color: #b0b8b8;
    margin-bottom: 10px;
}
.portfolio-item-content p {
    font-size: 14px;
    color: #c8d0d0;
    font-weight: 300;
    line-height: 1.6;
}
.portfolio-item-content .btn-link {
    display: inline-block;
    margin-top: 15px;
    color: #c9a96e;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}
.portfolio-item-content .btn-link:hover {
    color: #dbb97c;
}
.portfolio-item-content .btn-link i {
    margin-left: 6px;
    font-size: 12px;
}

.no-results {
    text-align: center;
    color: #b0b8b8;
    font-size: 18px;
    padding: 60px 0;
}

@media (max-width: 768px) {
    .page-header {
        padding: 120px 0 40px;
    }
    .page-title {
        font-size: 32px;
    }
    .portfolio-grid-page {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 480px) {
    .portfolio-grid-page {
        grid-template-columns: 1fr;
    }
    .filter-bar {
        gap: 10px;
    }
    .filter-btn {
        padding: 6px 16px;
        font-size: 12px;
    }
}