body {
    margin: 0;
    padding: 0;
    font-family: 'Old Standard TT', serif;
    background: url('slavic-pattern.jpg') fixed;
    background-size: cover;
    color: #3a2c1a;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(255, 248, 220, 0.85);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    min-height: 100vh;
}

header {
    text-align: center;
    padding: 30px 0;
    border-bottom: 3px double #8B4513;
    margin-bottom: 40px;
    position: relative;
}

h1 {
    font-size: 3em;
    color: #5a3921;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #e6b800, 0 0 20px #e6b800;
    }
    to {
        text-shadow: 0 0 10px #fff, 0 0 20px #ffcc00, 0 0 30px #ffcc00, 0 0 40px #ffcc00;
    }
}

/* Навигация */
nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.nav-link {
    margin: 0 15px;
    padding: 8px 15px;
    color: #8B4513;
    text-decoration: none;
    border: 1px solid #d4a76a;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: #d4a76a;
    color: white;
    transform: translateY(-3px);
}

/* Основное содержание */
main {
    padding: 20px;
}

section {
    margin-bottom: 40px;
}

h2 {
    color: #5a3921;
    border-bottom: 1px solid #d4a76a;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Карточки богов */
.gods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.god-card {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    border: 1px solid #d4a76a;
    text-align: center;
}

.god-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.god-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #8B4513;
    margin-bottom: 15px;
}

/* Изображения праздников и обрядов */
.holiday-img, .ritual-img, .myth-img, .craft-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 3px solid #d4a76a;
}

/* Галерея символов */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.symbol-item {
    text-align: center;
}

.symbol-item img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.symbol-item img:hover {
    transform: scale(1.1);
}

/* Подвал */
footer {
    text-align: center;
    padding: 20px;
    border-top: 3px double #8B4513;
    margin-top: 40px;
    font-size: 0.9em;
}

/* Анимация снега */
.snow {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
}

.snow:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('snow.png');
    animation: snow 20s linear infinite;
    opacity: 0.3;
}

@keyframes snow {
    0% { background-position: 0 0; }
    100% { background-position: 0 1000px; }
}

/* Адаптивность */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .gods-grid {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2em;
    }
}