/* ============================================
   Color System - Magical Forest Theme
   ============================================ */
:root {
    /* Primary Colors */
    --forest-green: #1a4d2e;
    --forest-green-light: #2d6a4f;
    --forest-green-dark: #0d2818;
    
    /* Accent Colors */
    --warm-yellow: #ffd700;
    
    /* Wooden Colors */
    --wood-brown: #8b4513;
    --wood-dark: #654321;
    --wood-light: #a0522d;
    
    /* Earthy/Dark Colors */
    --earth-dark: #2c1810;
    --earth-medium: #3d2817;
    --parchment: #f4e4bc;
    --parchment-dark: #d4c4a4;
    
    /* Accent Colors */
    --pink-accent: #ff69b4;
    --blue-accent: #4a90e2;
    --yellow-accent: #ffd700;
    --red-accent: #8b0000;
    
    /* Text Colors */
    --text-light: #f5f5dc;
    --text-dark: #2c1810;
    --text-gold: #ffd700;
}

/* ============================================
   Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: linear-gradient(180deg, var(--forest-green-dark) 0%, var(--earth-dark) 100%);
    color: var(--text-light);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* ============================================
   Wooden Beams
   ============================================ */
.top-beam,
.bottom-beam {
    width: 100%;
    height: 20px;
    background: linear-gradient(180deg, var(--wood-dark) 0%, var(--wood-brown) 50%, var(--wood-dark) 100%);
    border-bottom: 2px solid var(--wood-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: relative;
}

.top-beam::before,
.bottom-beam::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 10px,
        rgba(0, 0, 0, 0.3) 10px,
        rgba(0, 0, 0, 0.3) 12px
    );
}

/* ============================================
   Header
   ============================================ */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(26, 77, 46, 0.3);
    backdrop-filter: blur(5px);
}

.search-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: 500px;
    margin: 0 auto;
}

.search-bar {
    flex: 1;
    padding: 12px 20px;
    background: rgba(244, 228, 188, 0.1);
    border: 2px solid var(--wood-brown);
    border-radius: 25px;
    color: var(--text-light);
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.search-bar:focus {
    background: rgba(244, 228, 188, 0.2);
    border-color: var(--warm-yellow);
}

.search-bar::placeholder {
    color: rgba(245, 245, 220, 0.6);
}

.search-btn {
    background: var(--wood-brown);
    border: none;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: var(--warm-yellow);
    transform: scale(1.1);
}

.home-icon {
    color: var(--text-light);
    transition: all 0.3s ease;
}

.home-icon:hover {
    color: var(--warm-yellow);
    transform: scale(1.2);
}

/* ============================================
   Hero Section - Magical Forest
   ============================================ */
.hero-section {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin: 20px 0;
    z-index: 1;
}

.magical-forest {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 77, 46, 0.6) 0%, rgba(45, 106, 79, 0.5) 50%, rgba(26, 77, 46, 0.6) 100%);
    position: relative;
    overflow: hidden;
}

.magical-forest::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../image/fon1.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(10px);
    z-index: 0;
}

/* Hero Content */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    padding: 40px;
    background: rgba(26, 77, 46, 0.7);
    border-radius: 20px;
    border: 3px solid var(--warm-yellow);
    max-width: 800px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    color: var(--warm-yellow);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Floating Particles and Leaves - Animations removed */
.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--warm-yellow);
    border-radius: 50%;
}

.particle-1 {
    top: 20%;
    left: 30%;
}

.particle-2 {
    top: 60%;
    left: 70%;
}

.particle-3 {
    top: 40%;
    left: 50%;
}

.leaf {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--forest-green-light);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    opacity: 0.7;
}

.leaf-1 {
    top: 10%;
    left: 20%;
}

.leaf-2 {
    top: 50%;
    left: 80%;
}

.leaf-3 {
    top: 30%;
    left: 60%;
}

/* Cottage */
.cottage-container {
    position: absolute;
    left: 10%;
    bottom: 10%;
    z-index: 2;
}

.cottage {
    position: relative;
    width: 200px;
    height: 180px;
}

.cottage-roof {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 80px solid var(--wood-dark);
    position: relative;
}

.cottage-roof::after {
    content: '';
    position: absolute;
    top: -80px;
    left: -100px;
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 80px solid var(--red-accent);
    z-index: -1;
}

.cottage-body {
    width: 150px;
    height: 100px;
    background: var(--wood-brown);
    margin: 0 auto;
    position: relative;
    border: 3px solid var(--wood-dark);
}

.cottage-window {
    width: 40px;
    height: 40px;
    background: var(--warm-yellow);
    position: absolute;
    top: 20px;
    left: 20px;
    border: 2px solid var(--wood-dark);
    border-radius: 5px;
}

.cottage-door {
    width: 35px;
    height: 60px;
    background: var(--wood-dark);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border: 2px solid var(--wood-light);
    border-radius: 5px 5px 0 0;
}

/* Signposts */
.signpost {
    position: absolute;
    width: 60px;
    height: 80px;
    background: var(--wood-brown);
    border: 3px solid var(--wood-dark);
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.signpost-left {
    left: 15%;
    bottom: 25%;
    z-index: 3;
}

.signpost-right {
    right: 15%;
    top: 30%;
    z-index: 3;
}

.signpost-arrow {
    font-size: 24px;
    color: var(--text-light);
}

.glow-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
}

/* Magical Figure */
.magical-figure {
    position: absolute;
    right: 10%;
    bottom: 15%;
    width: 150px;
    height: 200px;
    z-index: 2;
}

.figure-glow {
    width: 120px;
    height: 120px;
    background: transparent;
    border-radius: 50%;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.orchid {
    width: 40px;
    height: 40px;
    background: var(--pink-accent);
    border-radius: 50% 50% 50% 0;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

/* ============================================
   Navigation
   ============================================ */
.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 20px;
    background: rgba(26, 77, 46, 0.4);
    backdrop-filter: blur(10px);
    position: relative;
    margin: 20px 0;
    flex-wrap: wrap;
}

/* ============================================
   Mobile Menu Styles
   ============================================ */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 10001;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: linear-gradient(180deg, var(--forest-green-dark) 0%, var(--earth-dark) 100%);
    z-index: 9999;
    padding: 80px 20px 20px;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    visibility: hidden;
    opacity: 0;
}

.mobile-menu.active {
    display: block !important;
    right: 0;
    opacity: 1;
    transform: translateY(0);
    visibility: visible !important;
}

.mobile-menu .nav {
    display: block !important;
    visibility: visible !important;
}

.mobile-menu .nav-list {
    display: flex !important;
    flex-direction: column;
    gap: 0;
    visibility: visible !important;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu .nav-list li {
    display: block !important;
    visibility: visible !important;
    width: 100%;
}

.mobile-menu .nav-list a {
    display: block !important;
    color: var(--text-light) !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 1rem;
    font-weight: 500;
    padding: 15px 20px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    width: 100%;
}

.mobile-menu .nav-list a:hover,
.mobile-menu .nav-list a.active {
    background: rgba(255, 215, 0, 0.1);
    color: var(--text-gold) !important;
    padding-left: 30px;
}

.nav-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
}

.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-gold);
    background: rgba(255, 215, 0, 0.1);
}

/* ============================================
   FS Score Display
   ============================================ */
.fs-score-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.fs-score {
    background: linear-gradient(135deg, var(--wood-brown) 0%, var(--wood-dark) 100%);
    padding: 15px 30px;
    border-radius: 25px;
    border: 2px solid var(--warm-yellow);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: bold;
}

.fs-label {
    color: var(--text-light);
}

.fs-value {
    color: var(--text-gold);
    font-size: 24px;
}

.fs-unit {
    color: var(--text-gold);
}

/* ============================================
   Content Area
   ============================================ */
.content-area {
    padding: 40px 20px;
    background: var(--earth-dark);
    min-height: 600px;
}

.content-section {
    background: var(--parchment);
    color: var(--text-dark);
    padding: 30px;
    margin: 30px auto;
    max-width: 1200px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 3px solid var(--wood-brown);
    position: relative;
}

.content-section::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, var(--warm-yellow), var(--wood-brown), var(--warm-yellow));
    border-radius: 15px;
    z-index: -1;
    opacity: 0.3;
}

.section-title {
    font-size: 32px;
    color: var(--forest-green-dark);
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.section-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: center;
    color: var(--text-dark);
}

/* Artifact Grid */
.artifact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.artifact-card {
    background: white;
    border: 2px solid var(--wood-brown);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.artifact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: var(--warm-yellow);
}

.artifact-card h3 {
    color: var(--forest-green-dark);
    margin: 15px 0 10px;
}

.artifact-card p {
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.5;
}

.artifact-card img {
    cursor: pointer;
    pointer-events: auto;
    user-select: none;
    -webkit-user-drag: none;
}

/* Game Cards */
.game-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.game-card {
    background: linear-gradient(135deg, var(--forest-green-light) 0%, var(--forest-green) 100%);
    color: var(--text-light);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--wood-brown);
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: transparent;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover::before {
    opacity: 0;
}

.game-card:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--warm-yellow);
}

.game-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.game-card h3 {
    margin: 15px 0 10px;
    font-size: 20px;
}

.game-card p {
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.game-card img,
.game-card .game-icon {
    cursor: pointer;
    pointer-events: auto;
    user-select: none;
}

.game-reward {
    background: var(--warm-yellow);
    color: var(--text-dark);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 12px 30px;
    border: 2px solid var(--wood-brown);
    border-radius: 25px;
    background: var(--wood-brown);
    color: var(--text-dark);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 20px auto;
    text-align: center;
}

.btn-primary:hover,
.btn-secondary:hover {
    background: var(--warm-yellow);
    border-color: var(--warm-yellow);
    color: var(--text-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: var(--text-dark);
    border-color: var(--wood-brown);
}

/* Ritual Carousel */
.ritual-carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
}

.ritual-card {
    text-align: center;
}

.polaroid {
    background: white;
    padding: 15px 15px 60px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transform: rotate(-2deg);
    margin: 0 auto 20px;
    max-width: 300px;
}

.polaroid-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--forest-green-light) 0%, var(--wood-brown) 100%);
    border: 2px solid var(--wood-dark);
}

.polaroid-caption {
    margin-top: 10px;
    font-style: italic;
    color: var(--text-dark);
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.carousel-btn {
    background: var(--wood-brown);
    border: none;
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--warm-yellow);
    transform: scale(1.1);
}

.carousel-counter {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-dark);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--earth-dark);
    padding: 40px 20px;
    margin-top: 40px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--wood-brown);
}

.footer-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.footer-nav a:hover {
    color: var(--warm-yellow);
}

.footer-bottom {
    text-align: center;
}

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

.fs-footnote {
    color: var(--text-light);
    font-size: 12px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    padding: 15px;
    background: rgba(139, 69, 19, 0.3);
    border-radius: 10px;
    border-left: 3px solid var(--warm-yellow);
}

.fs-footnote strong {
    color: var(--text-gold);
}

.legal-links {
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid rgba(139, 69, 19, 0.5);
    border-bottom: 1px solid rgba(139, 69, 19, 0.5);
}

.legal-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.legal-links a:hover {
    color: var(--text-gold);
}

.legal-content {
    text-align: left;
    line-height: 1.8;
}

.legal-content h2 {
    color: var(--forest-green-dark);
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--wood-brown);
}

.legal-content h3 {
    color: var(--forest-green);
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.legal-content ul, .legal-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.legal-content li {
    margin: 8px 0;
    color: var(--text-dark);
}

.legal-content p {
    margin: 15px 0;
    color: var(--text-dark);
}

.legal-content a {
    color: var(--forest-green);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.legal-content a:hover {
    color: var(--forest-green-dark);
}

.legal-content table {
    margin: 20px 0;
}

.legal-content strong {
    color: var(--forest-green-dark);
}

.footer-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 30px 0;
    padding: 30px 0;
    border-top: 2px solid var(--wood-brown);
    border-bottom: 2px solid var(--wood-brown);
}

.footer-column h4 {
    color: var(--text-gold);
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin: 8px 0;
}

.footer-column a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-column a:hover {
    color: var(--text-gold);
    padding-left: 5px;
}

/* ============================================
   Additional Styles for All Pages
   ============================================ */
@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }

    .search-container {
        max-width: 100%;
    }

    .hero-section {
        height: 400px;
    }
    
    .hero-content {
        padding: 25px;
        max-width: 95%;
    }
    
    .hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }

    .cottage-container {
        left: 5%;
        transform: scale(0.7);
    }

    .magical-figure {
        right: 5%;
        transform: scale(0.7);
    }

    .main-nav {
        position: relative;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        padding: 15px 20px;
    }
    
    .main-nav .nav-glow {
        display: none;
    }
    
    .main-nav .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu-overlay.active {
        display: block !important;
    }
    
    .mobile-menu.active {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .mobile-menu .nav {
        display: block !important;
        visibility: visible !important;
    }
    
    .mobile-menu .nav-list {
        display: flex !important;
        visibility: visible !important;
    }
    
    .mobile-menu .nav-list li {
        display: block !important;
        visibility: visible !important;
    }
    
    .mobile-menu .nav-list a {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: var(--text-light) !important;
    }

    .content-section {
        padding: 20px;
        margin: 20px 10px;
    }
    
    /* Full width on mobile */
    body {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    html {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .content-area {
        width: 100%;
        max-width: 100vw;
        padding: 20px 10px;
        box-sizing: border-box;
    }
    
    .content-section {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    * {
        box-sizing: border-box;
    }

    .section-title {
        font-size: 24px !important;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        padding: 0 10px;
    }

    .section-description {
        font-size: 16px;
        padding: 0 10px;
    }

    .artifact-grid,
    .game-cards {
        grid-template-columns: 1fr;
    }
    
    /* Table responsive wrapper */
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 20px -10px;
        padding: 0 10px;
    }
    
    .info-table,
    .legal-content table {
        min-width: 100%;
        width: max-content;
        display: table;
        font-size: 12px;
    }
    
    .info-table th,
    .info-table td,
    .legal-content table th,
    .legal-content table td {
        padding: 8px 6px;
        white-space: nowrap;
        font-size: 12px;
    }
    
    .info-table th:first-child,
    .info-table td:first-child {
        position: sticky;
        left: 0;
        background: inherit;
        z-index: 1;
    }
    
    h1, h2, h3, h4 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    h1.section-title {
        font-size: 24px !important;
    }
    
    h2.section-title {
        font-size: 20px !important;
    }
    
    .article-card h3,
    .article-card h4 {
        font-size: 18px;
        line-height: 1.3;
    }

    .footer-nav {
        gap: 15px;
    }
    
    .footer-info {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 0;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .legal-links {
        font-size: 12px;
    }
    
    .legal-links a {
        margin: 0 3px;
    }
    
    .legal-content {
        font-size: 14px;
    }
    
    .legal-content h2 {
        font-size: 20px;
    }
    
    .legal-content h3 {
        font-size: 18px;
    }
    
    .legal-content table {
        font-size: 12px;
    }
}

/* ============================================
   Contact Page Styles
   ============================================ */
.contacts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.contact-info-card {
    background: linear-gradient(135deg, var(--forest-green-light) 0%, var(--forest-green) 100%);
    color: var(--text-light);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid var(--wood-brown);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: transparent;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-info-card:hover::before {
    opacity: 0.3;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-color: var(--warm-yellow);
}

.contact-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.contact-info-card h3 {
    font-size: 24px;
    color: var(--text-gold);
    margin-bottom: 15px;
}

.contact-info-card p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-light);
}

.contact-link {
    color: var(--text-gold);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-link:hover {
    color: var(--warm-yellow);
    transform: scale(1.05);
}

.contact-address {
    line-height: 1.8;
}

.map-container {
    margin: 40px 0;
}

.google-map {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 3px solid var(--wood-brown);
    background: var(--parchment);
    padding: 10px;
}

.google-map iframe {
    display: block;
    width: 100%;
}

@media (max-width: 768px) {
    .contacts-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-info-card {
        padding: 20px;
    }
    
    .google-map {
        padding: 5px;
    }
    
    .google-map iframe {
        height: 350px;
    }
}

/* ============================================
   Registration Modal Styles
   ============================================ */
.registration-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.registration-modal-content {
    background: linear-gradient(135deg, var(--parchment) 0%, white 100%);
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border: 3px solid var(--wood-brown);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    color: var(--text-dark);
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.registration-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--wood-brown);
}

.registration-modal-header h2 {
    color: var(--forest-green-dark);
    font-size: 28px;
    margin: 0;
}

.modal-close-btn {
    background: transparent;
    border: none;
    font-size: 36px;
    color: var(--text-dark);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background: var(--wood-brown);
    color: var(--text-light);
    transform: rotate(90deg);
}

.registration-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--forest-green-dark);
    font-weight: bold;
    font-size: 16px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    padding: 12px 15px;
    border: 2px solid var(--wood-brown);
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Georgia', 'Times New Roman', serif;
    color: var(--text-dark);
    background: white;
    transition: all 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus {
    outline: none;
    border-color: var(--warm-yellow);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.form-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
}

.form-group label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    font-weight: normal;
    font-size: 14px;
    cursor: pointer;
}

.form-group label:has(input[type="checkbox"]) a {
    color: var(--forest-green);
    text-decoration: underline;
}

.form-group label:has(input[type="checkbox"]) a:hover {
    color: var(--wood-brown);
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    justify-content: center;
}

.form-actions .btn-primary,
.form-actions .btn-secondary {
    flex: 1;
    margin: 0;
}

@media (max-width: 768px) {
    .registration-modal-content {
        padding: 25px;
        max-width: 95%;
    }
    
    .registration-modal-header h2 {
        font-size: 24px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn-primary,
    .form-actions .btn-secondary {
        width: 100%;
    }
}

/* ============================================
   Accordion Styles
   ============================================ */
.accordion {
    margin: 20px 0;
}

.accordion-item {
    background: var(--parchment);
    border: 2px solid var(--wood-brown);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: var(--warm-yellow);
}

.accordion-header {
    padding: 20px;
    cursor: pointer;
    background: linear-gradient(135deg, var(--forest-green-light) 0%, var(--forest-green) 100%);
    color: var(--text-light);
    font-weight: bold;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    user-select: none;
}

.accordion-header:hover {
    background: linear-gradient(135deg, var(--forest-green) 0%, var(--forest-green-dark) 100%);
}

.accordion-header.active {
    background: linear-gradient(135deg, var(--wood-brown) 0%, var(--wood-dark) 100%);
    color: var(--text-gold);
}

.accordion-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
}

.accordion-content.active {
    max-height: 2000px;
    padding: 20px;
}

.accordion-content p {
    margin: 10px 0;
    line-height: 1.8;
    color: var(--text-dark);
}

.accordion-content ul {
    margin: 15px 0;
    padding-left: 30px;
}

.accordion-content li {
    margin: 8px 0;
    line-height: 1.6;
    color: var(--text-dark);
}

/* ============================================
   Article and Info Cards Styles
   ============================================ */
.article-card {
    background: white;
    border: 2px solid var(--wood-brown);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--warm-yellow);
}

.article-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--wood-brown);
}

.article-icon {
    font-size: 36px;
}

.article-title {
    font-size: 24px;
    color: var(--forest-green-dark);
    margin: 0;
}

.article-meta {
    font-size: 14px;
    color: var(--text-dark);
    opacity: 0.7;
    margin-bottom: 15px;
}

.article-content {
    color: var(--text-dark);
    line-height: 1.8;
}

/* ============================================
   Enhanced Table Styles
   ============================================ */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-table thead {
    background: linear-gradient(135deg, var(--forest-green) 0%, var(--forest-green-dark) 100%);
    color: var(--text-light);
}

.info-table th {
    padding: 15px;
    text-align: left;
    font-weight: bold;
    font-size: 16px;
}

.info-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(139, 69, 19, 0.2);
    color: var(--text-dark);
}

.info-table tbody tr {
    transition: background 0.3s ease;
}

.info-table tbody tr:hover {
    background: rgba(255, 215, 0, 0.1);
}

.info-table tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================
   Info Boxes and Callouts
   ============================================ */
.info-box {
    background: linear-gradient(135deg, rgba(26, 77, 46, 0.1) 0%, rgba(45, 106, 79, 0.1) 100%);
    border-left: 4px solid var(--forest-green);
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
}

.info-box.warning {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 140, 0, 0.1) 100%);
    border-left-color: var(--warm-yellow);
}

.info-box.tip {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(138, 43, 226, 0.1) 100%);
    border-left-color: var(--blue-accent);
}

.info-box-title {
    font-weight: bold;
    font-size: 18px;
    color: var(--forest-green-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-box.warning .info-box-title {
    color: var(--wood-dark);
}

.info-box.tip .info-box-title {
    color: var(--blue-accent);
}

/* ============================================
   Feature Grid
   ============================================ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.feature-card {
    background: linear-gradient(135deg, white 0%, var(--parchment) 100%);
    border: 2px solid var(--wood-brown);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--warm-yellow);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.feature-card h3 {
    color: var(--forest-green-dark);
    margin-bottom: 12px;
    font-size: 20px;
}

.feature-card p {
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 14px;
}

/* ============================================
   Stats Display
   ============================================ */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: linear-gradient(135deg, var(--forest-green-light) 0%, var(--forest-green) 100%);
    color: var(--text-light);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid var(--wood-brown);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: var(--warm-yellow);
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: var(--text-gold);
    display: block;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
}

/* ============================================
   Timeline Styles
   ============================================ */
.timeline {
    position: relative;
    padding: 20px 0;
    margin: 30px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--forest-green) 0%, var(--wood-brown) 100%);
}

.timeline-item {
    position: relative;
    padding-left: 70px;
    margin-bottom: 30px;
}

.timeline-marker {
    position: absolute;
    left: 18px;
    top: 5px;
    width: 25px;
    height: 25px;
    background: var(--warm-yellow);
    border: 3px solid var(--wood-brown);
    border-radius: 50%;
}

.timeline-content {
    background: white;
    border: 2px solid var(--wood-brown);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--warm-yellow);
}

.timeline-date {
    color: var(--forest-green-dark);
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 14px;
}

.timeline-title {
    color: var(--forest-green-dark);
    font-size: 18px;
    margin-bottom: 10px;
}

.timeline-description {
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 14px;
}

/* ============================================
   Courses Grid
   ============================================ */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.course-card {
    background: linear-gradient(135deg, white 0%, var(--parchment) 100%);
    border: 2px solid var(--wood-brown);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: left 0.5s ease;
}

.course-card:hover::before {
    left: 100%;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--warm-yellow);
}

.course-card img,
.course-card .course-icon {
    cursor: pointer;
    pointer-events: auto;
    user-select: none;
}

.ritual-card img,
.ritual-card .ritual-icon,
.polaroid-image {
    cursor: pointer;
    pointer-events: auto;
    user-select: none;
}

/* Общие стили для всех картинок в карточках */
.artifact-card img,
.game-card img,
.course-card img,
.ritual-card img,
.polaroid-image {
    cursor: pointer !important;
    pointer-events: auto !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
}

/* Стили для картинок в модальных окнах (не кликабельные) */
.artifact-detail img,
.ritual-detail img,
.course-detail img,
.topic-detail img {
    cursor: default;
    pointer-events: auto;
    user-select: none;
    -webkit-user-drag: none;
}

/* ============================================
   Ritual Grid
   ============================================ */
.ritual-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.ritual-item {
    background: linear-gradient(135deg, white 0%, var(--parchment) 100%);
    border: 2px solid var(--wood-brown);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ritual-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--warm-yellow);
}

/* ============================================
   Forum Sections
   ============================================ */
.forum-sections {
    margin: 40px 0;
}

.forum-category {
    margin: 30px 0;
    padding: 25px;
    background: rgba(139, 69, 19, 0.05);
    border-radius: 15px;
    border: 2px solid rgba(139, 69, 19, 0.2);
}

.forum-topics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.forum-topic {
    background: white;
    border: 2px solid var(--wood-brown);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.forum-topic:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: var(--warm-yellow);
}

.forum-topic h4 {
    color: var(--forest-green-dark);
    margin-bottom: 8px;
    font-size: 18px;
}

.forum-topic p {
    color: var(--text-dark);
    font-size: 14px;
    margin-bottom: 10px;
}

.forum-meta {
    font-size: 12px;
    color: var(--text-dark);
    opacity: 0.7;
    display: flex;
    gap: 15px;
}

.filter-btn {
    padding: 10px 20px;
    background: var(--wood-brown);
    color: var(--text-light);
    border: 2px solid var(--wood-brown);
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: var(--warm-yellow);
    border-color: var(--warm-yellow);
    color: var(--text-dark);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--warm-yellow);
    border-color: var(--warm-yellow);
    color: var(--text-dark);
}

.filter-section {
    background: rgba(139, 69, 19, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin: 30px 0;
}

.filter-section h3 {
    margin-bottom: 15px;
    color: var(--forest-green-dark);
}

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

/* ============================================
   Responsive Updates
   ============================================ */
@media (max-width: 768px) {
    .accordion-header {
        font-size: 16px;
        padding: 15px;
    }
    
    .article-card {
        padding: 15px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-item {
        padding-left: 50px;
    }
    
    .timeline-marker {
        left: 3px;
        width: 20px;
        height: 20px;
    }
    
    .section-title {
        font-size: 22px !important;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        padding: 0 10px;
    }
    
    .article-title {
        font-size: 18px;
    }
    
    .content-area {
        padding: 20px 10px;
    }
    
    /* Table responsive wrapper for all tables */
    .table-wrapper,
    .article-content,
    .legal-content {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 20px -10px;
        padding: 0 10px;
        width: calc(100% + 20px);
    }
    
    .info-table,
    .legal-content table {
        min-width: 600px;
        width: max-content;
        display: table;
        font-size: 11px;
        margin: 15px 0;
    }
    
    .info-table th,
    .info-table td,
    .legal-content table th,
    .legal-content table td {
        padding: 6px 4px;
        white-space: nowrap;
        font-size: 11px;
        line-height: 1.4;
    }
    
    .courses-grid,
    .ritual-grid {
        grid-template-columns: 1fr;
    }
    
    .forum-topics {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Very Small Mobile Devices (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
    .hero-title {
        font-size: 24px !important;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 20px !important;
        padding: 0 5px;
    }
    
    .content-section {
        padding: 15px;
        margin: 15px 5px;
    }
    
    .nav-link {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .main-nav {
        gap: 10px;
        padding: 10px;
    }
    
    .info-table,
    .legal-content table {
        font-size: 10px;
        min-width: 500px;
    }
    
    .info-table th,
    .info-table td,
    .legal-content table th,
    .legal-content table td {
        padding: 5px 3px;
        font-size: 10px;
    }
}

/* ============================================
   Auto-wrap tables in scrollable container on mobile
   ============================================ */
@media (max-width: 768px) {
    /* Make article-content and legal-content scrollable for tables */
    .article-content,
    .legal-content {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-left: -15px;
        margin-right: -15px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: calc(100% + 30px);
    }
    
    /* Ensure tables maintain their structure and are scrollable */
    .article-content table,
    .legal-content table,
    .content-section table {
        display: table;
        width: auto;
        min-width: 600px;
        margin: 15px 0;
    }
    
    /* Allow content-section to scroll horizontally if needed */
    .content-section {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

