* {
    box-sizing: border-box;
}

body {
    background-color: #000;
    color: #fff;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 12px 0;
    text-align: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header h1 {
    margin: 0;
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    letter-spacing: -0.5px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 80px 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-card {
    background: rgba(30, 30, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.news-card:hover {
    background: rgba(50, 50, 50, 0.9);
    transform: translateY(-2px);
}

.news-card h3 {
    margin: 0 0 8px;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
}

.news-card p {
    font-size: 13px;
    margin: 0;
    line-height: 1.4;
}

/* Modal — новости */
dialog.modal {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid #333;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px;
    position: relative;
    color: #fff;
}

dialog.modal::backdrop {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

dialog.modal button[class="close-btn"] {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 24px;
    color: #ff5555;
    background: none;
    border: none;
    cursor: pointer;
}

dialog.modal h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    margin-top: 0;
    margin-bottom: 16px;
}

dialog.modal p {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.5;
}

.modal-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.modal-images img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: opacity 0.2s;
}

.modal-images img:hover {
    opacity: 0.85;
}

/* Lightbox — для увеличения фото */
dialog.lightbox {
    background: transparent;
    border: none;
    padding: 0;
    max-width: 95vw;
    max-height: 95vh;
    color: #fff;
}

dialog.lightbox::backdrop {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

dialog.lightbox img {
    max-width: 95vw;
    max-height: 95vh;
    border: 2px solid white;
    border-radius: 4px;
}

dialog.lightbox button[class="lightbox-close"] {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 32px;
    cursor: pointer;
    background: none;
    border: none;
}