
        @font-face {
            font-family: 'Gilroy';
            src: url('fonts/Gilroy-ExtraBoldItalic.ttf') format('truetype');
            font-weight: bold;
            font-style: italic;
        }

        /* Стили для всего сайта */
        body {
            font-family: 'Gilroy', sans-serif;
            margin: 0;
            padding: 0;
            background-color: #121212; /* Темный фон для всего сайта */
            color: #F9F9F9;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            overflow-x: hidden;
        }
        body.hidden {
    opacity: 0; /* Скрываем содержимое */
    pointer-events: none; /* Отключаем взаимодействие с элементами страницы */
    visibility: hidden; /* Скрываем страницу полностью */
}

.hidden * {
    visibility: hidden; /* Скрываем все элементы внутри body */
}


        h1 {
            font-size: 48px;
            color: #F9F9F9;
            margin-top: 40px;
            font-weight: bold;
            animation: fadeIn 1s ease-in-out, moveUp 2s ease-out;
        }

        /* Анимация для логотипа */
        .logo {
            width: 450px; /* Ширина логотипа */
            height: auto;
            margin-bottom: 20px; /* Отступ от логотипа до названия */
            animation: logoAnim 2s ease-in-out;
        }

        /* Эффект появления для логотипа */
        @keyframes logoAnim {
            0% { transform: scale(0); opacity: 0; }
            100% { transform: scale(1); opacity: 1; }
        }

        /* Анимация для WikiHandbook */
        .subcategory-title {
            text-align: center;
            font-size: 36px;
            font-weight: bold;
            margin-top: 40px;
            letter-spacing: 1px;
            animation: fadeIn 2s ease-in-out, textMove 2s ease-out;
            display: inline-block;
            position: relative;
            font-family: 'Gilroy', sans-serif;
        }

        /* Градиентный цвет при наведении */
        .subcategory-title:hover {
            background-image: linear-gradient(to right, #2196f3, #ffeb3b);
            -webkit-background-clip: text;
            color: transparent;
            text-shadow: none;
            animation: gradientShift 1s ease-in-out forwards;
        }

        /* Движение текста по оси Y */
        @keyframes textMove {
            0% { transform: translateY(30px); opacity: 0; }
            100% { transform: translateY(0); opacity: 1; }
        }

        /* Эффект для градиента на тексте */
        @keyframes gradientShift {
            0% { background-position: 0% 50%; }
            100% { background-position: 100% 50%; }
        }

        /* Эффект на наведение */
        .blue {
            color: #2196f3; /* синий */
            text-shadow: 0px 0px 15px rgba(33, 150, 243, 0.7); /* Тень для синего */
        }

        .yellow {
            color: #ffeb3b; /* жёлтый */
            text-shadow: 0px 0px 15px rgba(255, 235, 59, 0.7); /* Тень для жёлтого */
        }

        /* Стили категорий */
        .category {
            margin-top: 50px;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 30px;
            padding: 0 20px;
            animation: fadeIn 1s ease-in-out;
        }

        .category-item {
            background-image: url('./img/other/background.webp');
            border-radius: 12px;
            padding: 20px;
            width: 200px;
            transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
            cursor: pointer;
            text-align: center;
            text-decoration: none;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
            background-color: rgba(0, 0, 0, 0.5); /* Чуть затемняем фоновый цвет */
            background-size: cover; /* Обеспечивает покрытие фона на весь блок */
            background-position: center; /* Центрирует фон */
            animation: fadeIn 1s ease-in-out;
        }

        /* Эффект при наведении на категорию */
        .category-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
            background-color: rgba(0, 0, 0, 0.7); /* Увеличиваем затемнение */
        }

        .category-item img {
            width: 100%;
            border-radius: 8px;
            margin-bottom: 15px;
            transform: scale(1);
            transition: transform 0.3s ease-in-out;
        }

        /* Эффект увеличения изображения при наведении */
        .category-item:hover img {
            transform: scale(1.05);
        }

        .category-item .category-name {
            font-size: 20px;
            font-weight: bold;
            color: #F9F9F9;
            transition: color 0.3s ease;
        }

        .category-item .category-description {
            font-size: 14px;
            color: #F9F9F9;
        }

        footer {
            text-align: center;
            color: #bbb;
            margin-top: 30px;
            padding: 20px 0;
            font-size: 16px;
        }

        /* Анимация появления */
        @keyframes fadeIn {
            0% { opacity: 0; }
            100% { opacity: 1; }
        }

        /* Стиль для частиц */
        #particles-js {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: -1; /* Частицы под контентом */
        }

        /* Мобильная адаптация */
        @media (max-width: 768px) {
            h1 {
                font-size: 32px;
            }

            .logo {
                width: 300px;
            }

            .category {
                margin-top: 20px;
                padding: 0 10px;
            }

            .category-item {
                width: 100%;
                max-width: 300px;
                margin-bottom: 20px;
                padding: 15px;
            }

            .category-item .category-name {
                font-size: 18px;
            }

            .category-item .category-description {
                font-size: 12px;
            }
        }

        @media (max-width: 480px) {
            h1 {
                font-size: 28px;
            }

            .logo {
                width: 250px;
            }

            .category-item {
                padding: 10px;
            }

            .category-item .category-name {
                font-size: 16px;
            }

            .category-item .category-description {
                font-size: 12px;
            }
        }
            
            .category-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 340px; /* або іншу бажану висоту */
}

.category-item img {
    width: 100%;
    height: 160px; 
    object-fit: cover; /* щоб зображення не розтягувалося */
    border-radius: 8px;
    margin-bottom: 15px;
}

.category-item .category-name {
    font-size: 20px;
    font-weight: bold;
    color: #F9F9F9;
    margin-bottom: 5px;
    min-height: 26px; /* Щоб текст не зсував опис */
}

.category-item .category-description {
    font-size: 14px;
    color: #F9F9F9;
    min-height: 34px; /* фіксована висота опису */
}


.car-image {
    height: 125px !important;
}


  .news-section {
    text-align: center;
    margin-top: 80px;
    width: 100%;
}

.news-section {
    padding: 40px 20px;
    max-width: 1275px;
    margin: 0 auto;
}

.subcategory-title {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
}

.subcategory-title .blue {
    color: #007BFF;
}

.subcategory-title .yellow {
    color: #FFD700;
}

.news-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.news-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;  /* Это позволит прокручивать элементы, если они выходят за пределы */
    scroll-behavior: smooth;
    padding: 10px 0;
    justify-content: flex-start;  /* Чтобы элементы не перекрывались */
    width: 100%;
}



.news-container::-webkit-scrollbar {
    display: none; /* ховаємо скролл */
}

.news-item {
    flex: 0 0 300px;
    background: #1e1e1e;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 15px;
    box-sizing: border-box;
    transition: transform 0.3s ease;
    text-align: center;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
}

.news-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.news-item p {
    font-size: 14px;
    color: #444;
    margin-bottom: 10px;
}

.news-date {
    font-size: 12px;
    color: #999;
    display: block;
    margin-top: auto;
}



/* Адаптив для мобілок */
@media (max-width: 768px) {
    .news-item {
        flex: 0 0 250px;
    }

    .subcategory-title {
        font-size: 24px;
    }
    
    
    .sticky-header {
    position: sticky;
    top: 20px;
    z-index: 999;
    background: rgba(15, 15, 22, 0.95); /* полупрозрачный тёмный фон */
    backdrop-filter: blur(4px);
    padding: 20px;
    border-radius: 16px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 30px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
}

.sticky-header .logo {
    position: static;
    display: block;
    margin-bottom: 10px;
    width: 200px;
    height: auto;
}

.sticky-header .subcategory-title {
    margin: 10px 0 20px;
}

    
    
    header.header_header__A7zCj {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 15, 22, 0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

header .sticky-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header .logo {
    position: static;
    width: 200px;
    height: auto;
    margin-bottom: 10px;
}

header .subcategory-title {
    margin: 10px 0 20px;
    text-align: center;
}
