/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #D2691E;
    --secondary: #D2691E;
    --accent: #D2691E;
    --light: #f8f9fa;
    --dark: #1a1a1a;
    --text: #333333;
    --text-light: #6c757d;
    --border: #dee2e6;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    background-color: #f9f9f9;
    color: var(--text);
    line-height: 1.6;
}

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

/* Навигация */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
    color: var(--accent);
}

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

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary);
}

.search-bar {
    display: flex;
    align-items: center;
}

.search-bar input {
    padding: 8px 15px;
    border: 1px solid var(--border);
    border-radius: 4px 0 0 4px;
    outline: none;
    width: 200px;
}

.search-bar button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* Путь */
.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

/* Фильтры */
.filters {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.filter-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 8px 15px;
    background-color: var(--light);
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary);
    color: white;
}

/* Основной контент */
.main-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    padding: 40px 0;
}

/* Заголовок страницы */
.page-header {
    margin-bottom: 30px;
}

.page-title {
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--primary);
}

.page-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Заголовок страницы essence */
.page-headerK {
    margin-bottom: 30px;
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 8px;
    color: white;
}

.page-titleK {
    font-size: 36px;
    margin-bottom: 10px;
}

.page-subtitleK {
    font-size: 18px;
    opacity: 0.9;
}

/* Навигация по странице */
.page-nav {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.page-nav ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 10px;
}

.page-nav li {
    margin-bottom: 10px;
}

.page-nav a {
    display: block;
    padding: 8px 15px;
    background-color: var(--light);
    color: var(--text);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.page-nav a:hover {
    background-color: var(--primary);
    color: white;
}

/* Контентные блоки */
.content-section {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.section-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
}

.content-section p {
    margin-bottom: 15px;
}

.content-section ul,
.content-section ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.content-section li {
    margin-bottom: 8px;
}

/* Карточки богов */
.gods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.god-card {
    background-color: var(--light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.god-card:hover {
    transform: translateY(-5px);
}

.god-img {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.god-content {
    padding: 20px;
}

.god-content h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

.god-content p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.god-mythology {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* Карточки существ */
.creatures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.creature-card {
    background-color: var(--light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.creature-card:hover {
    transform: translateY(-5px);
}

.creature-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.creature-mythology {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.creature-type {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--accent);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.creature-content {
    padding: 20px;
}

.creature-content h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

.creature-content .creature-category {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 10px;
    font-style: italic;
}

.creature-content p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
}

.creature-attributes {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 15px;
}

.attribute {
    background-color: var(--accent);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.danger-level {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.danger-low {
    background-color: #d4edda;
    color: #155724;
}

.danger-medium {
    background-color: #fff3cd;
    color: #856404;
}

.danger-high {
    background-color: #f8d7da;
    color: #721c24;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

/* Таблица */
.myth-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.myth-table th,
.myth-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.myth-table th {
    background-color: var(--light);
    color: var(--primary);
    font-weight: 600;
}

.myth-table tr:hover {
    background-color: rgba(220, 20, 60, 0.1);
}

/* Цитата */
.quote {
    background-color: var(--light);
    border-left: 4px solid var(--accent);
    padding: 20px;
    margin: 25px 0;
    font-style: italic;
}

.quote-author {
    margin-top: 10px;
    text-align: right;
    font-weight: 600;
    color: var(--text-light);
}

/* Боковая панель */
.sidebar {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: var(--shadow);
    height: fit-content;
}

.sidebar-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
}

.related-links {
    list-style: none;
}

.related-links li {
    margin-bottom: 12px;
}

.related-links a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.related-links a:hover {
    color: var(--primary);
}

.related-links i {
    margin-right: 10px;
    color: var(--accent);
}

.fact-box {
    background-color: var(--light);
    padding: 20px;
    border-radius: 8px;
    margin-top: 25px;
}

.fact-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary);
}

/* БП для существ */
.creature-stats h3 {
    margin-bottom: 15px;
    color: var(--primary);
}