.container {
    max-width: 1280px;
    margin: 60px auto 0 !important;
    padding: 0 20px;
}

.catalog-title {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 2px solid #e5e5e5;
}

.catalog-layout {
    display: flex;
    gap: 30px;
}

.catalog-layout--top-filter {
    flex-direction: column;
}

.catalog-layout--top-filter .catalog-main {
    width: 100%;
}

.catalog-sidebar {
    flex-shrink: 0;
    width: 280px;
}

.catalog-top-filter {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 16px;
}

.filter-sticky {
    position: sticky;
    top: 20px;
}

.filter-form {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 20px;
}

.catalog-top-filter .filter-form {
    padding: 0;
    background: transparent;
}

.catalog-top-filter .filter-form .filter-group {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 0;
    vertical-align: middle;
}

.catalog-top-filter .filter-form .filter-group label {
    display: inline-block;
    margin-right: 8px;
}

.catalog-top-filter .filter-form .filter-group select,
.catalog-top-filter .filter-form .filter-search-input {
    width: auto;
    min-width: 180px;
    display: inline-block;
}

.catalog-top-filter .filter-form .filter-actions {
    display: inline-block;
    margin-top: 0;
}

.catalog-top-filter .filter-reset {
    display: inline-block;
    width: auto;
    padding: 10px 20px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.filter-group select,
.filter-search-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
}

.filter-search-input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #173a7c;
}

.filter-actions {
    margin-top: 20px;
}

.filter-reset {
    display: block;
    width: 100%;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    text-align: center;
    transition: all 0.2s;
}

.filter-reset:hover {
    background: #e74c3c;
    border-color: #e74c3c;
    color: #fff;
}

.catalog-main {
    flex: 1;
    min-width: 0;
}

/* ===== ДИЗАЙН СПИСКОМ (как в оригинале) ===== */
.object-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.object-card {
    display: flex;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    height: 240px;  /* Фиксированная высота как в оригинале */
}

.object-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: transparent;
}

.object-card__image {
    flex-shrink: 0;
    width: 200px;
    background: #f5f5f5;
    overflow: hidden;
}

.object-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.object-card__no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 180px;
    color: #999;
    font-size: 13px;
}

.object-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 20px;
}

.object-card__params {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 16px;
}

.param-item {
    flex: 1;
    min-width: 150px;
}

.param-label {
    display: block;
    font-size: 11px;
    color: #8c8c8c;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.param-value {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.4;
    word-break: break-word;
}

.param-value.status-problem {
    color: #e74c3c;
}

.param-value.status-unknown {
    color: #333;
}

.param-value.status-building {
    color: #f39c12;
}

.param-value.status-completed {
    color: #27ae60;
}

.object-link, .developer-link {
    color: #173a7c;
    text-decoration: none;
}

.object-link:hover, .developer-link:hover {
    text-decoration: underline;
}

.object-card__footer {
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
    margin-top: 4px;
}

.detail-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #173a7c;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.detail-link:hover {
    gap: 12px;
    text-decoration: underline;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding: 20px 0;
    margin-bottom: 60px;
}

.pagination a, .pagination span {
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
}

.pagination a {
    background: #f5f5f5;
    color: #333;
}

.pagination a:hover {
    background: #173a7c;
    color: #fff;
}

.pagination .active {
    background: #173a7c;
    color: #fff;
}

.empty-catalog {
    text-align: center;
    padding: 60px;
    background: #f9f9f9;
    border-radius: 16px;
    color: #666;
}

.reset-link {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 20px;
    background: #173a7c;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
}

.reset-link:hover {
    background: #0052a3;
}

@media (max-width: 768px) {
    .catalog-layout {
        flex-direction: column;
    }

    .catalog-sidebar {
        width: 100%;
    }

    .filter-sticky {
        position: static;
    }

    .object-card {
        flex-direction: column;
        height: auto;
    }

    .object-card__image {
        width: 100%;
        height: 200px;
    }

    .object-card__params {
        flex-direction: column;
        gap: 12px;
    }

    .param-item {
        min-width: auto;
    }

    .catalog-title {
        font-size: 22px;
    }

    .catalog-top-filter .filter-form .filter-group {
        display: block;
        margin-bottom: 15px;
        margin-right: 0;
    }

    .catalog-top-filter .filter-form .filter-group select,
    .catalog-top-filter .filter-search-input {
        width: 100%;
    }
}

/* Горизонтальный фильтр */
.catalog-layout--top-filter {
    flex-direction: column;
}

.catalog-layout--top-filter .catalog-sidebar {
    width: 100%;
}

.catalog-layout--top-filter .filter-form {
    display: flex;
    justify-content: space-between;
}

.catalog-layout--top-filter .filter-form div {
    width: calc(100% / 3 - 20px);
}

/* Стили для горизонтального фильтра (когда SHOW_FILTER = top) */
.catalog-layout--top-filter {
    flex-direction: column;
}

/*.catalog-layout--top-filter .catalog-sidebar {*/
/*    display: none;*/
/*}*/

.catalog-layout--top-filter .catalog-top-filter {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 16px;
}

.catalog-layout--top-filter .filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 20px;
    padding: 0;
    background: transparent;
}

.catalog-layout--top-filter .filter-form .filter-group {
    flex: 1;
    margin-bottom: 0;
    min-width: 180px;
}

.catalog-layout--top-filter .filter-form .filter-group label {
    margin-bottom: 5px;
}

.catalog-layout--top-filter .filter-form .filter-actions {
    margin-top: 0;
    flex-shrink: 0;
}

.catalog-layout--top-filter .filter-reset {
    width: auto;
    padding: 10px 20px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .catalog-layout--top-filter .filter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .catalog-layout--top-filter .filter-form .filter-group {
        margin-bottom: 15px;
    }

    .catalog-layout--top-filter .filter-reset {
        width: 100%;
    }
}

/* Стили для карточек объектов */
.object-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.object-card {
    display: flex;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    height: 240px;
}

.object-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: transparent;
}

.object-card__image {
    flex-shrink: 0;
    width: 200px;
    background: #f5f5f5;
    overflow: hidden;
}

.object-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.object-card__no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 180px;
    color: #999;
    font-size: 13px;
}

.object-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 20px;
}

.object-card__params {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 16px;
}

.param-item {
    flex: 1;
    min-width: 150px;
}

.param-label {
    display: block;
    font-size: 11px;
    color: #8c8c8c;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.param-value {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.4;
    word-break: break-word;
}

.param-value.status-problem { color: #e74c3c; }
.param-value.status-building { color: #f39c12; }
.param-value.status-completed { color: #27ae60; }

.object-link, .developer-link {
    color: #173a7c;
    text-decoration: none;
}

.object-link:hover, .developer-link:hover {
    text-decoration: underline;
}

.object-card__footer {
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
    margin-top: 4px;
}

.detail-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #173a7c;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.detail-link:hover {
    gap: 12px;
    text-decoration: underline;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 30px;
    padding: 20px 0;
}

.pagination a {
    text-decoration: none;
    transition: all 0.2s;
}

.pagination__prev,
.pagination__next {
    padding: 8px 16px;
    border-radius: 8px;
    background: #f5f5f5;
    color: #333;
}

.pagination__prev:hover,
.pagination__next:hover {
    background: #173a7c;
    color: #fff;
}

.pagination__numbers {
    display: flex;
    gap: 8px;
}

.pagination__link,
.pagination__current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 14px;
}

.pagination__link {
    background: #f5f5f5;
    color: #333;
}

.pagination__link:hover {
    background: #173a7c;
    color: #fff;
}

.pagination__current {
    background: #173a7c;
    color: #fff;
}

.empty-catalog {
    text-align: center;
    padding: 60px;
    background: #f9f9f9;
    border-radius: 16px;
    color: #666;
}

.reset-link {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 20px;
    background: #173a7c;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
}

.reset-link:hover {
    background: #0052a3;
}

@media (max-width: 768px) {
    .catalog-layout {
        flex-direction: column;
    }

    .catalog-sidebar {
        width: 100%;
    }

    .object-card {
        flex-direction: column;
        height: auto;
    }

    .object-card__image {
        width: 100%;
        height: 200px;
    }

    .object-card__params {
        flex-direction: column;
        gap: 12px;
    }

    .param-item {
        min-width: auto;
    }

    .catalog-title {
        font-size: 22px;
    }
}

.catalog-top-filter .filter-form .filter-group {
    display: flex;
    flex-direction: column;
}
.developer-search-wrap {
    width: 100% !important;
}
.developer-group select#developer {
    overflow-x: auto;
}