body {
    font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
    background: #f4f7fb;
    
    /* Центрирование содержимого */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    
    /* Базовый размер шрифта */
    font-size: 18px;
    color: #333;
}

/* Контейнер карточки - центрирование */
.card {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto; /* Автоматические отступы слева и справа */
    margin-top: 20px;
    margin-bottom: 20px;
    background: white;
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 8px 20px rgba(0, 20, 40, 0.06);
    overflow: hidden;
    padding: 2.5rem;
}

/* Заголовок */
.header-block {
    margin-bottom: 2rem;
}

.object-title h1 {
    font-size: 3.8rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #0b1c33;
    line-height: 2.2;
    word-break: break-word;
}

.object-title h1 i {
    color: #2a7de1;
    margin-right: 10px;
    font-size: 2.2rem;
}

/* Фото и основная таблица */
.photo-info {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.photo-box {
    flex: 1 1 300px;
    min-width: 280px;
    border-radius: 28px;
    overflow: hidden;
    background: #eef2f6;
    box-shadow: 0 12px 24px -8px rgba(0, 32, 64, 0.2);
    height: auto;
    max-height: 400px;
}

.photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.photo-box img:hover {
    transform: scale(1.02);
}

.info-table {
    flex: 1 1 380px;
    background: #f9fafc;
    border-radius: 28px;
    padding: 3.5rem 1.8rem 3.5rem;
    border: 1px solid #e9ecf2;
}

.info-table h2 {
    font-size: 2.6rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #0f2a4a;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.info-table h2 i {
    color: #2a7de1;
}

.info-row {
    display: flex;
    padding: 0.8rem 0;
    border-bottom: 1px dashed #d9e0eb;
    font-size: 1.6rem;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    width: 40%;
    font-weight: 500;
    color: #4a5f7a;
    padding-right: 10px;
}

.info-value {
    width: 55%;
    font-weight: 600;
    color: #0b1c33;
}

/* Контактная информация — филиал отдельно, остальные в строку */
.contact-section {
    margin: 2rem 0 2rem;
    padding: 1.2rem 1.5rem;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e4eaf2;
}

.contact-branch {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #e4eaf2;
    color: #2b4b77;
    font-size: 1.8rem;
}

.contact-branch i {
    color: #2a7de1;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.branch-link {
    color: #0b1c33;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed #a0b8d6;
    margin-left: 0.3rem;
}

.branch-link:hover {
    border-bottom-color: #1d5ec9;
    color: #1d5ec9;
}

.contact-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #2b4b77;
    font-size: 1.6rem;
}

.contact-item i {
    color: #2a7de1;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.phone-number {
    color: #0b1c33;
    text-decoration: none;
    font-weight: 500;
}

.phone-number:hover {
    color: #1d5ec9;
}

.contact-divider {
    width: 1px;
    height: 20px;
    background: #d0ddeb;
}

/* Сворачиваемый блок с дополнительной информацией */
.collapse-section {
    margin: 2rem 0 1.8rem;
    background: #f8faff;
    border-radius: 28px;
    border: 1px solid #e2eaf5;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.collapse-header {
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    background: #ffffffd9;
    backdrop-filter: blur(2px);
}

.collapse-header h2 {
    font-size: 2rem;
    font-weight: 500;
    color: #0f2a4a;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 0;
}

.collapse-header h2 i {
    color: #2a7de1;
    transition: transform 0.2s;
}

.collapse-toggle {
    font-size: 1.6rem;
    color: #2a6bb0;
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 50, 100, 0.1);
    transition: 0.2s;
}

.collapse-header:hover .collapse-toggle {
    background: #e3edff;
    transform: scale(1.05);
}

.collapse-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease, padding 0.3s;
    background: #ffffff;
    border-top: 0 solid transparent;
}

.collapse-content.show {
    max-height: 1000px;
    opacity: 1;
    padding: 1.5rem 2rem 2rem 2rem;
    border-top: 1px solid #dbe4f0;
}

/* Стили для списка дополнительных характеристик */
.extra-list {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.extra-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px dotted #cdd9eb;
    line-height: 1.4;
}

.extra-item:last-child {
    border-bottom: none;
}

.extra-item i {
    width: 28px;
    color: #3f6fc2;
    font-size: 1.3rem;
    text-align: center;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.extra-label {
    width: 260px;
    flex-shrink: 0;
    font-weight: 600;
    color: #0d2d4e;
    font-size: 1.6rem;
}

.extra-value {
    color: #193b61;
    font-size: 1.6rem;
    word-break: break-word;
}

.extra-value a {
    color: #1d5ec9;
    text-decoration: none;
    border-bottom: 1px solid #a3c0e9;
}

.extra-value a:hover {
    border-bottom-color: #1d5ec9;
    color: #0a3a8b;
}

.extra-note {
    margin-top: 1.2rem;
    padding: 0.8rem 1.2rem;
    background: #edf3fd;
    border-radius: 20px;
    color: #3b5f8a;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Документы */
.documents-section {
    margin: 1.8rem 0 2rem;
    background: #f2f6fe;
    border-radius: 28px;
    padding: 1.6rem 2rem 2rem;
    border: 1px solid #dce5f5;
}

.documents-section h2 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #0f2a4a;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.doc-sub {
    color: #4e6580;
    margin-bottom: 1.8rem;
    font-size: 1rem;
}

.docs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.doc-item {
    background: white;
    border-radius: 20px;
    padding: 1rem 1.8rem 1rem 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 30, 60, 0.05);
    border: 1px solid #e5ecf5;
    transition: 0.15s;
    font-weight: 500;
    color: #1c3b5e;
    text-decoration: none;
}

.doc-item i {
    color: #d43f34;
    font-size: 1.5rem;
}

.doc-item:hover {
    background: #e9f0ff;
    border-color: #a3c0e9;
    box-shadow: 0 8px 16px rgba(42, 97, 202, 0.12);
}

.doc-placeholder {
    background: #eef2f6;
    border-radius: 20px;
    padding: 1.2rem 2rem;
    color: #617e9c;
    font-weight: 450;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 1px dashed #b6c9e0;
}

.doc-placeholder i {
    color: #7f99bb;
    font-size: 1.5rem;
}

/* Галерея */
.gallery-section {
    margin-top: 2.5rem;
}

.gallery-section h2 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #0f2a4a;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.2rem;
}

.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #d9e2ef;
    box-shadow: 0 8px 16px rgba(0,0,0,0.06);
    transition: 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.gallery-item:hover {
    border-color: #2a7de1;
    transform: scale(1.02);
    box-shadow: 0 16px 24px rgba(0,60,130,0.12);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Адаптив */
@media (max-width: 700px) {
    .header-block {
    margin: 0rem 2rem 1rem;
    
    } 
    .object-title h1 {
        font-size: 2.8rem;
        line-height: 1.5;    
        
    }
    .object-title h1 i {
        display: none;
    }
    
    .extra-item {
        flex-direction: column;
        gap: 0.3rem;
        padding: 1rem 0;
    }
    .extra-label {
        width: auto;
    }
    .card { padding: 1.5rem; }
    .info-row {
        flex-direction: column;
        gap: 4px;
    }
    .info-label, .info-value {
        width: 100%;
    }
    .contact-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .contact-divider {
        display: none;
    }
}