body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
}

.object-img {
    height: 220px;
    object-fit: cover;
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
}

.carousel-img {
    height: 500px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .carousel-img {
        height: 300px;
    }
}

.card {
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.badge {
    font-weight: 500;
}

/* === Страница объекта === */
.object-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Десктоп: две колонки */
@media (min-width: 992px) {
    .object-layout {
        display: grid;
        grid-template-columns: 1fr 380px;
        gap: 2rem;
    }
    
    /* Все основные блоки - в левой колонке */
    .object-main {
        grid-column: 1;
        min-width: 0;
    }
    
    /* Sidebar - в правой колонке, прилипает */
    .object-sidebar {
        grid-column: 2;
        grid-row: 1 / span 8;
        position: sticky;
        top: 20px;
        height: fit-content;
        z-index: 100;
    }
}

/* Мобильная версия: порядок блоков */
@media (max-width: 991px) {
    .object-header { order: 1; }
    .object-photos { order: 2; }
    .object-description { order: 3; }
    .object-sidebar { order: 4; }
    .object-map { order: 5; }
    .object-stats { order: 6; }
    .object-questions { order: 7; }
    .object-question-form { order: 8; }
}
