body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    color: #333;
    line-height: 1.6;
}

a {
    color: #004481;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header */
.header-container {
    background-color: #004481; /* Темно-синий фон, как у футера */
    padding: 10px 0;
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-top {
    display: flex;
    justify-content: space-between; /* Логотип слева, навигация справа */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo-section .logo {
    height: 70px; /* Размер логотипа */
    margin-right: 15px;
}

.company-slogan h1 {
    margin: 0;
    font-size: 1.8em;
    font-weight: bold;
}

.company-slogan p {
    margin: 0;
    font-size: 0.8em;
    letter-spacing: 1px;
}

/* Main Navigation */
.main-nav {
    background-color: #004481; /* Темно-синий фон, как у футера */
    /* Навигация уже является частью .header-top, который использует flex, поэтому она в одной линии */
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* Разделы в ровную линию */
}

.main-nav li {
    margin-left: 20px;
}

.main-nav a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    white-space: nowrap; /* Чтобы пункты не переносились */
    font-size: 0.9em;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    border-radius: 3px; /* Закругленные края для активного/наведенного состояния */
}

.main-nav a:hover,
.main-nav a.active {
    background-color: #0056b3; /* Чуть светлее синий для наведения/активного состояния */
}

/* Main Content Area */
.main-content-container {
    display: flex;
    max-width: 1200px;
    margin: 20px auto;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 5px;
    overflow: hidden; /* Для корректного отображения внутренних блоков */
}

/* Left Sidebar */
.left-sidebar {
    width: 250px;
    padding: 20px;
    background-color: #ececec; /* Светло-серый фон */
    border-right: 1px solid #ddd;
    flex-shrink: 0; /* Чтобы сайдбар не сжимался */
}

.left-sidebar h2 {
    font-size: 1.5em;
    color: #333;
    margin-top: 0;
    border-bottom: 2px solid #004481; /* Синяя полоса под заголовком */
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.left-sidebar h3 {
    font-size: 1.1em;
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
}

.left-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.left-sidebar ul li {
    margin-bottom: 8px;
}

.left-sidebar ul li a {
    color: #555;
    text-decoration: none;
    display: block;
    padding: 5px 0;
    transition: color 0.2s ease;
}

.left-sidebar ul li a:hover {
    color: #004481;
    text-decoration: underline;
}

.view-all-link {
    display: block;
    margin-top: 15px;
    color: #004481;
    font-size: 0.9em;
    text-align: right;
}

.distributor-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.distributor-item img {
    height: 40px; /* Размер логотипа дистрибьютора */
    margin-right: 10px;
    padding: 5px;
}

.distributor-item span {
    font-size: 0.85em;
    color: #555;
}

/* Main Article Content */
.main-article-content {
    flex-grow: 1; /* Занимает все оставшееся пространство */
    padding: 20px;
}

.article-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Чтобы контактная информация была сверху */
    margin-bottom: 20px;
}

.contact-info-small {
    text-align: left;
    font-size: 0.9em;
    color: #555;
    line-height: 1.3;
}

.contact-info-small p {
    margin: 0;
    font-weight: bold;
    color: #e44d26; /* Красный для телефонов */
}

.contact-info-small a {
    color: #004481;
}

.main-slider-image {
    max-width: 20%; /* Ширина изображения слайдера */
    height: auto;

}

.breadcrumbs {
    font-size: 0.85em;
    color: #777;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.breadcrumbs a {
    color: #777;
}

.company-about h2,
.catalog-page-content h2 {
    color: #004481;
    font-size: 2em;
    margin-top: 0;
    margin-bottom: 20px;
    position: relative;
    padding-left: 15px;
}

.company-about h2::before,
.catalog-page-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 80%;
    background-color: #004481;
    border-radius: 3px;
}

.about-content {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.about-image {
    width: 300px; /* Размер изображения в разделе "О компании" */
    height: 200px;
    border: 1px solid #ddd;
    border-radius: 5px;
    flex-shrink: 0;
}

.about-content p {
    text-align: justify;
    margin: 0;
}

/* Catalog Page Specifics */
.catalog-page-content p {
    margin-bottom: 20px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Две колонки */
    gap: 20px;
    margin-bottom: 30px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    text-align: center;
    background-color: #f9f9f9;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    color: #333;
    font-weight: bold;
    font-size: 1.1em;
    text-transform: uppercase;
}

.category-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-5px);
    text-decoration: none;
    color: #004481;
}

.category-item img {
    max-width: 100%;
    height: 150px; /* Фиксированная высота для изображений категорий */
    object-fit: contain; /* Сохраняет пропорции, заполняя доступное пространство */
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.catalog-description-bottom {
    font-size: 0.9em;
    color: #555;
    text-align: justify;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Footer */
.footer {
    background-color: #004481; /* Темно-синий фон */
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 0.9em;
    margin-top: 40px;
}

.footer-contact-info p {
    margin: 5px 0;
    font-weight: bold;
}

.footer-contact-info a {
    color: white;
    text-decoration: none;
    margin-top: 10px;
    display: inline-block;
}

.footer-nav {
    margin-top: 15px;
    margin-bottom: 15px;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    white-space: nowrap;
}

.footer-nav a:hover {
    text-decoration: underline;
}

.copyright {
    margin: 0;
}

.developer {
    margin-top: 5px;
    font-size: 0.8em;
    color: rgba(255,255,255,0.7);
}