@import "https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.min.css";

/* ---- Фон на уровне html, чтобы не перекрывался контентом ---- */
html {
    background: #0a0a0a;
    min-height: 100vh;
}
html::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.30;
    z-index: -1;
    filter: grayscale(20%) brightness(0.7);
}
body {
    background: transparent;
    color: #e8e8e8;
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

header {
    background: rgba(10,10,10,0.96);
    border-bottom: 1px solid #2a2a2a;
    padding: 0.5rem 2rem;
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
}
.logo {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #e8e8e8;
    text-decoration: none;
}
.logo span { color: #c8102e; }
nav a {
    color: #888;
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin: 0 0.8rem;
    transition: color 0.2s;
}
nav a:hover { color: #e8e8e8; }
nav a.active { color: #c8102e; }
.hero {
    padding: 4rem 0;
    border-bottom: 1px solid #2a2a2a;
    margin-bottom: 2rem;
}
.hero h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.hero p { color: #aaa; }
.hero-jp {
    writing-mode: vertical-rl;
    font-size: 1.6rem;
    color: #2a2a2a;
    letter-spacing: 0.3em;
}
.card {
    background: #111;
    border: 1px solid #2a2a2a;
    transition: border-color 0.2s;
}
.card:hover { border-color: #c8102e; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}
.gallery-grid img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    cursor: pointer;
    filter: grayscale(30%) brightness(0.8);
    transition: filter 0.3s, transform 0.3s;
}
.gallery-grid img:hover {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.02);
}
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.modal img { max-width: 90vw; max-height: 85vh; border: 1px solid #2a2a2a; }
.modal-close {
    position: absolute;
    top: 1.5rem; right: 2rem;
    font-size: 2.5rem;
    color: #888;
    cursor: pointer;
}
.modal-close:hover { color: #c8102e; }
.archive-table th { color: #888; font-weight: 500; text-transform: uppercase; font-size: 0.75rem; }
.archive-table td { border-bottom: 1px solid #2a2a2a; }
.archive-table a { color: #c8102e; text-decoration: none; }
.archive-table a:hover { text-decoration: underline; }
.group-hero {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: top;
    filter: grayscale(40%) brightness(0.7);
    margin-bottom: 1.5rem;
}
.error-page { text-align: center; padding: 4rem 0; }
.error-page h1 { font-size: 6rem; color: #2a2a2a; }
footer {
    border-top: 1px solid #2a2a2a;
    padding: 2rem;
    text-align: center;
    color: #888;
    font-size: 0.8rem;
    margin-top: 3rem;
}
@media (max-width: 768px) {
    nav { display: none; }
    .hero { grid-template-columns: 1fr; }
    .hero-jp { display: none; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
