/* --- Базовые стили --- */
body {
    font-family: 'Orbitron', sans-serif;
    background: #0f1626;
    color: #fff;
    margin: 0;
    padding: 0;
}

header, footer {
    padding: 20px;
    text-align: center;
    background: #12182b;
    position: relative;
    z-index: 1000;
}

header nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

header a, .filter-btn {
    color: #fff;
    margin: 0 8px;
    text-decoration: none;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
    background: rgba(255, 46, 99, 0.1);
}

.filter-btn.active, header a:hover, .filter-btn:hover {
    background: #ff2e63;
    color: #fff;
}

.burger {
    display: none;
    font-size: 28px;
    cursor: pointer;
    background: none;
    border: none;
    color: #fff;
}

/* Сетка карточек */
.grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

.card {
    background: rgba(15, 22, 38, 0.9);
    padding: 20px;
    border-radius: 16px;
    width: 350px;
    box-shadow: 0 0 25px rgba(255, 46, 99, 0.2);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, opacity 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 35px rgba(255, 46, 99, 0.35);
}

.card h3 {
    color: #ff2e63;
    margin-bottom: 10px;
}

.card p {
    color: #cfd8dc;
    line-height: 1.4em;
}

button {
    background: #ff2e63;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 5px;
    transition: 0.3s;
}

button:hover {
    background: #ff4571;
}

/* Комментарии */
.comment-box {
    margin-top: 15px;
    background: #1c253d;
    padding: 10px;
    border-radius: 8px;
}

.comment-box p {
    margin: 5px 0;
    font-size: 0.95em;
}

.comment-box input {
    width: 45%;
    margin-right: 5%;
    padding: 6px;
    border-radius: 6px;
    border: none;
}

.comment-box button {
    margin-top: 5px;
}

/* Панель админа */
.admin-panel {
    background: #1c253d;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.admin-panel input, .admin-panel textarea, .admin-panel select {
    width: 90%;
    margin: 5px 0;
    padding: 8px;
    border-radius: 6px;
    border: none;
    background: #2a2f4a;
    color: #fff;
}

.admin-panel button {
    margin-top: 10px;
}

footer {
    font-size: 0.85em;
    color: #888;
}

/* Карусель */
.carousel {
    position: relative;
    margin: 15px 0;
    overflow: hidden;
    border-radius: 12px;
}

.carousel-item {
    width: 100%;
    display: none;
    border-radius: 12px;
}

.carousel-item.active {
    display: block;
}

.carousel button.prev,
.carousel button.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,46,99,0.7);
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.carousel button.prev { left: 10px; }
.carousel button.next { right: 10px; }

/* Lightbox */
#lightbox {
    display: none;
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

#lightbox img, #lightbox video {
    max-width: 90%;
    max-height: 90%;
}

/* --- Мобильные стили --- */
@media screen and (max-width: 768px) {
    header nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #12182b;
        padding: 10px 0;
    }

    .burger {
        display: block;
        position: absolute;
        top: 15px;
        right: 20px;
        z-index: 1500;
    }
}

