/* specifications.css */

.note {
    font-size: 1.1em;
    color: #DA9D43;
    font-style: italic;
    margin-bottom: 30px;
    padding: 10px 15px;    
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    font-size: 16px;
    text-align: left;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 10px 10px 0 0;  /* Скругление только сверху */
    overflow: hidden;  /* Чтобы скругление работало */
}

/* Заголовок таблицы (Конструктивный элемент | Характеристики) */
.specs-table th {
    background-color: #DA9D43;
    color: #fff;
    font-weight: bold;
    padding: 15px 20px;
    font-size: 1.1em;
    text-align: center;
    width: 50%;
    position: relative;
}

/* Вертикальная белая черта между заголовками */
.specs-table th:first-child::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 2px;
    background-color: #ffffff;
}

/* Вертикальная белая черта для всех ячеек (кроме последней в ряду) */
.specs-table td:not(:last-child) {
    position: relative;
}

.specs-table td:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 2px;
    background-color: #ffffff;
    z-index: 1;
}

/* Для ячеек с белым фоном делаем черту темнее, чтобы было видно */
.specs-table tbody tr:not(.section-header):not(.note-row):nth-child(odd) td:not(:last-child)::after {
    background-color: #e0e0e0;  /* Серая черта для белых строк */
}

.specs-table tbody tr:not(.section-header):not(.note-row):nth-child(even) td:not(:last-child)::after {
    background-color: #d0d0d0;  /* Чуть темнее для серых строк */
}

/* Для заголовков секций черта */
.specs-table .section-header td:not(:last-child)::after {
    background-color: #b0b0b0;  /* Темно-серая для заголовков секций */
    height: 40%;  /* Чуть короче */
}

/* Ячейки таблицы */
.specs-table td {
    padding: 12px 20px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: top;
    width: 50%;
}

.specs-table td:first-child {
    font-weight: bold;
}

/* Заголовки секций (Фундамент, Стены и т.д.) */
.specs-table .section-header td {
    background-color: rgba(218, 157, 67, 0.2);
    font-weight: bold;
    font-size: 1.15em;
    color: #222;
    padding: 10px 20px;
    text-align: center;
    border-bottom: none;
    width: 50%;
}

/* Чередование цветов строк в таблице */
.specs-table tbody tr:not(.section-header):not(.note-row):nth-child(even) {
    background-color: #f9f9f9;
}

.specs-table tbody tr:not(.section-header):not(.note-row):nth-child(odd) {
    background-color: #ffffff;
}

/* Удаляем старый стиль для .note-row, так как он больше не в таблице */
.specs-table .note-row {
    display: none; /* Скрываем, если вдруг остался в верстке */
}

/* Убираем двойные границы у section-header */
.specs-table .section-header td {
    border-bottom: none;
}

/* Добавляем небольшую тень для заголовка секции */
.specs-table .section-header {
    box-shadow: inset 0 1px 0 #d0d1d3, inset 0 -1px 0 #d0d1d3;
}

/* Скругление верхних углов у заголовков */
.specs-table th:first-child {
    border-top-left-radius: 10px;
}

.specs-table th:last-child {
    border-top-right-radius: 10px;
}

/* Блок предупреждения под таблицей */
.warning-block {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    
    border-radius: 8px;
    padding: 20px 25px;
    margin-top: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.warning-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
}

.warning-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.warning-text {
    font-size: 1.1em;
    color: black;
    line-height: 1.5;
    flex: 1;
}

.warning-text strong {
    font-weight: bold;
    display: inline; /* Текст жирный и обычный в одной строке с переносом */
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .specs-table {
        font-size: 14px;
    }
    
    .specs-table th,
    .specs-table td {
        padding: 10px 12px;
        width: 50%;
    }
    
    /* Уменьшаем черты на мобильных */
    .specs-table th:first-child::after,
    .specs-table td:not(:last-child)::after {
        height: 40%;
    }
    
    .warning-block {
        padding: 15px 20px;
        gap: 12px;
    }
    
    .warning-icon {
        width: 32px;
        height: 32px;
    }
    
    .warning-text {
        font-size: 1em;
    }
    
    h1 {
        font-size: 2em;
    }
}