/* ====== Основные стили для Главной страницы Базы знаний ====== */
body.knowledge-base-home {
    background-color: #f8f9fb;
    margin: 0;
    padding: 0;
    font-family: "Nunito", sans-serif;
}

/* ====== Общие стили текста ====== */
h1, h2, h3 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700; /* Жирный для заголовков */
}

.kb-card p {
    font-family: 'Nunito', sans-serif;
    font-weight: 400; /* Обычный шрифт */
}

.kb-card a {
    font-family: 'Nunito', sans-serif;
    font-weight: 600; /* Чуть жирнее для кнопки */
}

/* ====== Основная обертка ====== */
.kb-wrapper {
    display: flex;
    max-width: 1300px;
    margin: 40px auto;
    padding: 20px;
    gap: 20px;
    align-items: flex-start;
    transition: margin-left 0.3s ease-in-out;
}

/* ====== Контент ====== */
.kb-main {
    flex: 1;
    padding: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: margin-left 0.3s ease-in-out;
    text-align: center;
}

/* ====== Карточки юр. лиц ====== */
.kb-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 25px; /* Расстояние между карточками */
}

/* Стиль карточки */
.kb-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
    overflow: hidden;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

/* Контейнер для изображения с параллакс-эффектом */
.kb-card-image-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 180px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

/* Само изображение */
.kb-card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease-out;
    display: block;
}

/* Анимация при наведении */
.kb-card:hover .kb-card-image-container img {
    transform: scale(1.1);
}

/* Контейнер для текста и кнопки */
.kb-card-content {
    padding: 15px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Заголовки карточек */
.kb-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 10px 0;
}

/* Описание карточки */
.kb-card p {
    font-size: 14px;
    color: #666;
    margin: 10px 0;
}

/* Кнопка "Перейти" */
.kb-card a {
    display: inline-block;
    padding: 8px 15px;
    background: #3a3a3a;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease-in-out;
    margin-top: auto;
}

.kb-card a:hover {
    background: #2b2b2b;
}

/* Анимация карточки при наведении */
.kb-card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.kb-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
}

/* ====== Убираем нижние полоски и ненужные элементы ====== */
.site-footer {
    display: none;
}

/* Мобильная адаптивность */
@media (max-width: 768px) {
    .kb-cards {
        grid-template-columns: 1fr; /* Оставляем одну колонку для мобильных */
    }

    .kb-main {
        padding: 20px; /* Уменьшаем отступы на мобильных */
    }
}