@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Cinzel:wght@400;700&family=Press+Start+2P&display=swap');

:root {
    --primary: #ff3333; /* Ярко-красный (вместо темного) */
    --gold: #ffcc00;
    --gold-dim: #b8860b;
    --stone-bg: #1a1a1a;
    --text: #e0d0b0;
}

* {
    box-sizing: border-box;
    cursor: none;
}

body {
    margin: 0;
    font-family: 'Cinzel', serif;
    background-color: #050505;
    color: var(--text);
    overflow-x: hidden;
}

#webgl-canvas {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, transparent 0%, #000 90%);
}

/* Курсор */
.cursor-dot {
    position: fixed; width: 6px; height: 6px; background: var(--gold);
    transform: translate(-50%, -50%) rotate(45deg); pointer-events: none; z-index: 10000;
    box-shadow: 0 0 10px var(--gold);
}
.cursor-outline {
    position: fixed; width: 40px; height: 40px; border: 2px solid var(--gold);
    transform: translate(-50%, -50%) rotate(45deg); pointer-events: none; z-index: 9999;
    transition: 0.1s;
}

/* Шапка */
header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 5%; background: rgba(10, 10, 10, 0.95);
    border-bottom: 2px solid var(--gold-dim); position: fixed; width: 100%; top: 0; z-index: 1000;
}

.logo {
    font-family: 'Cinzel Decorative', cursive; font-size: 1.8rem; color: var(--gold);
    text-decoration: none; text-transform: uppercase; display: flex; align-items: center; gap: 10px;
}

nav a {
    color: var(--text); text-decoration: none; margin: 0 15px; font-weight: 700;
    font-size: 0.9rem; text-transform: uppercase; transition: 0.3s; position: relative;
}
nav a:hover { color: var(--gold); text-shadow: 0 0 10px var(--gold); }

.header-buttons { display: flex; gap: 15px; }

.btn {
    padding: 10px 20px; text-decoration: none; font-family: 'Cinzel', serif; font-weight: bold;
    text-transform: uppercase; font-size: 0.8rem; border: 1px solid var(--gold-dim); transition: 0.3s;
    display: inline-block; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.btn-download { background: #800000; color: var(--gold); }
.btn-download:hover { background: var(--gold); color: #000; }
.btn-reg { background: transparent; color: var(--text); }
.btn-reg:hover { border-color: var(--gold); color: var(--gold); }

/* Hero */
.hero {
    height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; position: relative; z-index: 1;
}
.hero h1 {
    font-family: 'Cinzel Decorative', cursive; font-size: 4.5rem; margin-bottom: 10px; color: var(--gold);
    text-shadow: 0 5px 15px #000; line-height: 1;
}
.hero p {
    font-size: 1.2rem; color: #ccc; max-width: 600px; margin-bottom: 2rem;
    background: rgba(0,0,0,0.6); padding: 10px; border-top: 1px solid var(--gold-dim); border-bottom: 1px solid var(--gold-dim);
}

/* Контент */
.container {
    max-width: 1300px; margin: 0 auto; padding: 4rem 2rem; position: relative; z-index: 2;
}

.section-title {
    font-family: 'Cinzel Decorative', cursive; font-size: 3rem; text-align: center; margin-bottom: 3rem; color: var(--text);
}

/* Сетка карточек - исправлена для надежности */
.grid {
    display: grid;
    /* Уменьшили minmax до 300px, чтобы 3 шт влезали на стандартных экранах */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2rem;
    align-items: start;
}

/* Карточка */
.card {
    /* Делаем фон непрозрачным и чуть светлее черного */
    background: #141414; 
    border: 1px solid #444;
    padding: 2rem;
    position: relative;
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    transition: transform 0.2s, box-shadow 0.2s;
    /* Убеждаемся, что она видима */
    opacity: 1 !important; 
    visibility: visible !important;
}

/* Золотые уголки через псевдоэлементы */
.card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 20px; height: 20px;
    border-top: 2px solid var(--gold-dim); border-left: 2px solid var(--gold-dim);
}
.card::after {
    content: ''; position: absolute; bottom: 0; right: 0; width: 20px; height: 20px;
    border-bottom: 2px solid var(--gold-dim); border-right: 2px solid var(--gold-dim);
}

.card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(255, 204, 0, 0.15);
    background: #1a1a1a;
}

.card h3 {
    font-family: 'Cinzel', serif; color: var(--gold); font-size: 1.3rem; margin-top: 0;
    border-bottom: 1px solid #333; padding-bottom: 10px;
}

.card p {
    color: #bbb; line-height: 1.6; font-size: 0.9rem;
}

/* Дата - яркий цвет */
.date {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    color: var(--primary); /* Теперь ярко-красный */
    margin-bottom: 15px;
    display: block;
    text-transform: uppercase;
    text-shadow: 0 0 5px rgba(255, 51, 51, 0.4);
}

footer {
    text-align: center; padding: 3rem; background: #000; border-top: 1px solid #333; color: #555;
    position: relative; z-index: 2;
}

@media (max-width: 900px) {
    .grid { grid-template-columns: 1fr; } /* На мобилках в одну колонку */
    .hero h1 { font-size: 3rem; }
    header { flex-direction: column; gap: 10px; }
}