/* --- БАЗОВЫЕ НАСТРОЙКИ --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #050505;
    color: #d1d5db;
    font-family: 'Lora', serif; /* Серифный шрифт для атмосферы средневековья */
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- ФОН И АТМОСФЕРА --- */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Мрачный фон. Можешь заменить URL на любую свою картинку */
    background: url('https://images.unsplash.com/photo-1542451313056-b7c8e6266459?q=80&w=1920&auto=format&fit=crop') center/cover no-repeat; 
    z-index: -2;
}

.bg-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Градиентное затемнение, чтобы текст хорошо читался */
    background: linear-gradient(to bottom, rgba(5,5,5,0.85) 0%, rgba(15,10,10,0.95) 100%);
    z-index: -1;
}

h1, h2, h3 {
    font-family: 'Cinzel', serif; /* Эпичный заголовочный шрифт */
    font-weight: 700;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- ШАПКА И НАВИГАЦИЯ --- */
header {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px); /* Размытие заднего фона */
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 88, 34, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

header h1 {
    color: #e25822; /* Цвет тлеющего угля */
    font-size: 2rem;
    letter-spacing: 3px;
    text-shadow: 0 0 15px rgba(226, 88, 34, 0.4);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 1rem;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s ease;
}

/* Анимация подчеркивания при наведении */
nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #e25822;
    transition: width 0.3s ease;
}

nav a:hover, nav a.active {
    color: #f3f4f6;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

nav a:hover::after, nav a.active::after {
    width: 100%;
}

/* --- ОСНОВНОЙ КОНТЕНТ --- */
.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 20px;
}

/* Секция приветствия */
.hero {
    text-align: center;
    margin-bottom: 70px;
    animation: fadeIn 1.5s ease-in;
}

.hero h2 {
    color: #f3f4f6;
    font-size: 3.5rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 35px auto;
    color: #9ca3af;
}

/* Кнопка "Зажечь костер" */
.btn {
    display: inline-block;
    padding: 12px 35px;
    background: transparent;
    color: #e25822;
    border: 1px solid #e25822;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    box-shadow: inset 0 0 0 0 #e25822;
}

.btn:hover {
    box-shadow: inset 0 0 20px 0 rgba(226,88,34, 0.4), 0 0 20px 0 rgba(226,88,34, 0.3);
    color: #fff;
    background: rgba(226,88,34, 0.1);
}

/* --- КАРТОЧКИ (Сетка) --- */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: rgba(15, 15, 15, 0.6);
    backdrop-filter: blur(8px); /* Стекло-эффект */
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 35px;
    border-radius: 4px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    border-top: 3px solid #374151; /* Серая полоска сверху */
}

.card:hover {
    transform: translateY(-5px); /* Легкое поднятие при наведении */
    border-top-color: #e25822;    /* Полоска загорается */
    background: rgba(20, 20, 20, 0.8);
}

.card h3 {
    color: #e5e7eb;
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 15px;
}

.news ul {
    list-style: none;
}

.news li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
}

.news li::before {
    content: '♦'; /* Декоративный маркер списка */
    position: absolute;
    left: 0;
    color: #e25822;
    font-size: 0.8rem;
    top: 4px;
}

/* --- ПОДВАЛ --- */
footer {
    text-align: center;
    padding: 30px;
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-family: 'Cinzel', serif;
}

footer p {
    color: #6b7280;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

/* --- АНИМАЦИИ --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Адаптивность для телефонов */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    .hero h2 {
        font-size: 2.5rem;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}
/* --- СТИЛИ ДЛЯ ИСТОРИИ (Буквица) --- */

.story-card p {
    text-align: justify;
    margin-bottom: 25px;
    color: #cfd8dc;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Красивая большая первая буква (Буквица) */
.drop-cap::first-letter {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    color: #e25822; /* Цвет пламени */
    float: left;
    margin-right: 12px;
    margin-bottom: -10px;
    line-height: 1;
    text-shadow: 0 0 10px rgba(226, 88, 34, 0.4);
}
/* --- ДОПОЛНЕНИЯ ДЛЯ ТЕКСТА И ЛОКАЦИЙ --- */

.hero p {
    text-align: justify;
    margin-bottom: 20px; /* Отступ между абзацами на главной */
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-header h2 {
    font-size: 3rem;
    color: #f3f4f6;
    margin-bottom: 15px;
}

.locations-list {
    display: flex;
    flex-direction: column;
    gap: 40px; /* Расстояние между карточками локаций */
}

.location-card h3 {
    color: #e25822;
    font-size: 2rem;
    text-align: center;
}

.lore-title, .opinion-title {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    margin-top: 25px;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lore-title {
    color: #9ca3af; /* Серебристый цвет для лора */
}

.opinion-title {
    color: #f3f4f6; /* Яркий белый для личного мнения */
    border-bottom: 1px solid rgba(226, 88, 34, 0.3);
}
