/* common.css - Общие стили для всех страниц BIM сайта */
:root {
    --primary-color: #1a5276;
    --secondary-color: #3498db;
    --accent-color: #f39c12;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --success-color: #27ae60;
    --info-color: #2980b9;
    --warning-color: #e67e22;
    --danger-color: #e74c3c;
    --future-color: #9b59b6;
}

/* Базовые стили */
.bim-body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Навигация */
.bim-navbar {
    background-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.bim-navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

/* Герой-секция */
.bim-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.bim-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,202.7C672,203,768,181,864,170.7C960,160,1056,160,1152,170.7C1248,181,1344,203,1392,213.3L1440,224L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: center;
}

/* Заголовки секций */
.bim-section-title {
    position: relative;
    margin-bottom: 3rem;
    font-weight: 700;
    color: var(--dark-color);
}

.bim-section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
}

.bim-section-title.center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Карточки */
.bim-card {
    border: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    height: 100%;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    overflow: hidden;
}

.bim-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Списки с иконками */
.bim-feature-list {
    list-style-type: none;
    padding: 0;
    margin: 20px 0;
}

.bim-feature-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 25px;
}

.bim-feature-list li:last-child {
    border-bottom: none;
}

.bim-feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* Спецификации */
.bim-specs {
    background: var(--light-color);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
}

.bim-specs h5 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.bim-spec-item {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.bim-spec-item::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Секции контента */
.bim-content-section {
    padding: 80px 0;
}

.bim-content-section:nth-child(even) {
    background-color: white;
}

/* Футер */
.bim-footer {
    background-color: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
    margin-top: 50px;
}

/* Кнопка "Наверх" */
.bim-back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1000;
}

.bim-back-to-top.show {
    opacity: 1;
}

/* Таблицы сравнения */
.bim-comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.bim-comparison-table th {
    background-color: var(--primary-color);
    color: white;
    text-align: left;
    padding: 15px;
}

.bim-comparison-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.bim-comparison-table tr:last-child td {
    border-bottom: none;
}

.bim-comparison-table tr:nth-child(even) {
    background-color: #f9f9f9;
}