/* --- Общие стили и шрифты --- */
body {
    font-family: 'Roboto Mono', monospace;
    margin: 0;
    padding: 0;
    background-color: #0c001a; /* Очень темный фиолетовый фон */
    color: #00ffc8; /* Неоновый бирюзовый текст */
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 0;
}

/* --- Шрифты для заголовков --- */
h1, h2, h3, h4 {
    font-family: 'Major Mono Display', monospace;
    color: #ff00ff; /* Неоновый розовый для заголовков */
    text-shadow: 0 0 8px rgba(255, 0, 255, 0.5);
    margin-bottom: 20px;
}

p {
    color: #00e0b8;
}

a {
    color: #00aaff; /* Неоновый синий для ссылок */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ff00ff;
    text-shadow: 0 0 5px rgba(255, 0, 255, 0.7);
}

/* --- HEADER --- */
header {
    background-color: #1a0033; /* Темный глубокий фиолетовый */
    padding: 30px 0;
    text-align: center;
    border-bottom: 2px solid #00ffc8;
    box-shadow: 0 0 25px rgba(0, 255, 200, 0.4);
    position: relative;
    overflow: hidden; /* Для фоновых эффектов */
}

/* Эффект глитча для заголовков */
@keyframes glitch-anim {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

header h1, h2 {
    animation: glitch-anim 0.05s infinite alternate;
    font-size: 3.8em;
    margin: 0;
    line-height: 1.1;
    color: #ff00ff; /* Переопределяем для хедера */
    text-shadow: 0 0 15px #ff00ff, 0 0 25px #00aaff;
}

header h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.2em;
    color: #00aaff;
    margin-top: 10px;
    text-shadow: none;
    animation: none; /* Убираем глитч для подзаголовка */
}

.logo-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.logo {
    width: 100px; /* Размер логотипа */
    height: auto;
    border-radius: 50%;
    border: 3px solid #00ffc8;
    box-shadow: 0 0 15px rgba(0, 255, 200, 0.8), 0 0 25px rgba(255, 0, 255, 0.6);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: rotate(10deg) scale(1.05);
}

.header-story {
    margin-top: 40px;
    background-color: rgba(26, 0, 51, 0.6); /* Полупрозрачный фон */
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #00aaff;
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.3);
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.header-story p {
    font-size: 1.05em;
    margin-bottom: 15px;
    color: #b3ecff; /* Светло-бирюзовый для текста */
}

.header-story p strong {
    color: #ffcc00; /* Яркий желтый для выделения */
    text-shadow: 0 0 5px rgba(255, 204, 0, 0.7);
}

/* --- MAIN CONTENT / NEWS GRID --- */
main {
    padding: 60px 0;
}

main h3 {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 50px;
    color: #ffcc00;
    text-shadow: 0 0 12px rgba(255, 204, 0, 0.7);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: #1a0033;
    border: 1px solid #00aaff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 0 25px rgba(255, 0, 255, 0.7), 0 0 35px rgba(0, 255, 200, 0.7);
}

.news-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #00ffc8;
}

.news-card h4 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.1em;
    margin: 20px 20px 10px;
    color: #00ffc8;
    text-shadow: 0 0 8px rgba(0, 255, 200, 0.5);
    flex-grow: 1; /* Чтобы заголовок занимал доступное место */
}

.news-date {
    font-size: 0.9em;
    color: #9999ff;
    margin: 0 20px 10px;
}

.news-card p {
    font-size: 0.95em;
    margin: 0 20px 20px;
    color: #b3ecff;
}

.read-more {
    display: block;
    text-align: center;
    background-color: #ff00ff;
    color: #0c001a;
    padding: 12px 0;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
    border-top: 1px solid #00aaff;
    box-shadow: inset 0 0 10px rgba(255, 0, 255, 0.5);
}

.read-more:hover {
    background-color: #00aaff;
    color: #1a0033;
    box-shadow: inset 0 0 15px rgba(0, 170, 255, 0.7);
}

/* --- FOOTER --- */
footer {
    background-color: #1a0033;
    color: #00ffc8;
    text-align: center;
    padding: 25px 0;
    border-top: 2px solid #ff00ff;
    font-size: 0.9em;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.4);
}

/* --- Адаптивный дизайн (Медиазапросы) --- */

/* Для планшетов */
@media (max-width: 992px) {
    header h1 {
        font-size: 3em;
    }
    header h2 {
        font-size: 1em;
    }
    main h3 {
        font-size: 1.8em;
    }
    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    .header-story {
        padding: 20px;
    }
}

/* Для смартфонов */
@media (max-width: 600px) {
    .container {
        width: 95%;
    }
    .logo-area {
        flex-direction: column;
        gap: 10px;
    }
    .logo {
        width: 80px;
    }
    header h1 {
        font-size: 2.2em;
    }
    header h2 {
        font-size: 0.8em;
    }
    main h3 {
        font-size: 1.5em;
        margin-bottom: 30px;
    }
    .news-grid {
        grid-template-columns: 1fr; /* Один столбец */
        gap: 25px;
    }
    .news-card h4 {
        font-size: 1em;
    }
    .news-card p {
        font-size: 0.9em;
    }
    .read-more {
        font-size: 0.8em;
    }
    .header-story {
        padding: 15px;
    }
    .header-story p {
        font-size: 0.95em;
    }
}
