/* ===== ОСНОВНЫЕ СТИЛИ ===== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    padding-top: 160px;
}

.header {
    background: #ffffff;
    border-bottom: 3px solid #1a3c6e;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
}

.navbar {
    position: fixed;
    top: 88px;
    left: 0;
    right: 0;
    z-index: 999;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo h1 {
    color: #1a3c6e;
    font-weight: 700;
}

.contacts-header {
    background: #f0f4f8;
    padding: 5px 15px;
    border-radius: 8px;
    display: inline-block;
}

.hover-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: #1a3c6e;
}

.bannerSwiper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.swiper-button-next,
.swiper-button-prev {
    color: #fff;
    background: rgba(0,0,0,0.3);
    padding: 20px 10px;
    border-radius: 5px;
}

.swiper-pagination-bullet-active {
    background: #1a3c6e;
}

.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    margin-top: 30px;
    padding: 30px 0 10px 0;
}

.footer a:hover {
    text-decoration: underline !important;
    color: #a8c4e8 !important;
}

.footer .copyright {
    border-top: 1px solid #34495e;
    padding-top: 15px;
    margin-top: 20px;
    font-size: 14px;
}

@media (max-width: 768px) {
    body {
        padding-top: 130px;
    }
    .navbar {
        top: 70px;
    }
    .contacts-header {
        font-size: 14px !important;
        padding: 5px 10px;
    }
    .logo h1 {
        font-size: 22px !important;
    }
}

.cart-badge {
    font-size: 12px;
    padding: 3px 7px;
}

.sidebar-categories {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.sidebar-categories .category-item {
    padding: 8px 12px;
    margin-bottom: 5px;
    border-radius: 5px;
    transition: all 0.2s;
}

.sidebar-categories .category-item:hover {
    background: #e9ecef;
}

.sidebar-categories .category-item.active {
    background: #1a3c6e;
    color: white;
}

.sidebar-categories .category-item.active a {
    color: white;
}

.article-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    min-height: 400px;
}

.article-content h1 {
    color: #1a3c6e;
    margin-bottom: 20px;
}

.article-content h2 {
    color: #2c3e50;
    margin-top: 25px;
    margin-bottom: 15px;
}

.article-content p {
    line-height: 1.8;
    margin-bottom: 15px;
}

.article-content ul,
.article-content ol {
    margin-bottom: 15px;
    padding-left: 25px;
}

.article-content li {
    margin-bottom: 8px;
}

html,
body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1 0 auto;
}

.footer {
    flex-shrink: 0;
    margin-top: auto;
}

/* Нижний отступ */
body {
    padding-bottom: 160px !important;
}

/* ===== НИЖНИЙ ОТСТУП ===== */
body {
    padding-bottom: 160px !important;
}

/* Убираем лишние отступы */
.footer {
    margin-bottom: 0 !important;
}

/* Убираем отступ у body, добавляем отступ у основного контента */
body {
    padding-bottom: 0 !important;
}

.main-content {
    margin-bottom: 160px !important;
}

/* На мобильных устройствах */
@media (max-width: 768px) {
    .main-content {
        margin-bottom: 130px !important;
    }
}
