/* ==================== ОСНОВНОЙ КОНТЕЙНЕР ДЛЯ ВСЕХ СТРАНИЦ ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* ==================== БАЗОВЫЕ СТИЛИ ==================== */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    margin: 0;
    padding: 0;
}

/* Заголовок на всех страницах */
h1.title_main {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px;
    margin: 0;
    font-size: 24px;
    font-weight: normal;
}

/* Основной контент */
.container table[width="100%"] {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 20px;
    overflow: hidden;
}

.container table[width="100%"] td[valign="top"] {
    padding: 25px;
}

/* ==================== УНИВЕРСАЛЬНЫЕ СТИЛИ ДЛЯ ЛЮБОГО КОНТЕНТА ==================== */

/* Заголовки на страницах товаров */
h2 {
    color: #2c3e50;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
    margin-top: 30px;
    font-size: 22px;
}

h3 {
    color: #34495e;
    margin-top: 25px;
    font-size: 18px;
}

/* Параграфы */
p {
    margin: 15px 0;
    font-size: 16px;
    line-height: 1.7;
}

/* Списки */
ul, ol {
    margin: 15px 0;
    padding-left: 30px;
}

li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Таблицы на страницах */
table:not([width="100%"]):not(.catalog_table):not(.catalog_table_liq):not(.item_table) {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

table:not([width="100%"]):not(.catalog_table):not(.catalog_table_liq):not(.item_table) td {
    padding: 10px;
    border: 1px solid #ddd;
    vertical-align: top;
}

/* Ссылки */
a {
    color: #2980b9;
    text-decoration: none;
}

a:hover {
    color: #e74c3c;
    text-decoration: underline;
}

/* ==================== АДАПТИВНОСТЬ ==================== */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    h1.title_main {
        font-size: 20px;
        padding: 15px;
    }
    
    .container table[width="100%"] td[valign="top"] {
        padding: 15px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    h3 {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 5px;
    }
    
    h1.title_main {
        font-size: 18px;
        padding: 12px;
    }
    
    .container table[width="100%"] td[valign="top"] {
        padding: 10px;
    }
    
    p {
        font-size: 15px;
    }
}

/* ==================== ФУТЕР ==================== */
/* Последняя таблица на странице (футер) */
body > table[width="100%"]:last-of-type {
    background: #34495e;
    color: white;
    margin-top: 30px;
    border-radius: 0;
}

body > table[width="100%"]:last-of-type td {
    padding: 20px;
    text-align: center;
    color: white;
}

body > table[width="100%"]:last-of-type a {
    color: #3498db;
}

body > table[width="100%"]:last-of-type a:hover {
    color: #f1c40f;
}