/* Index Page Styles */
:root {
    --swamp-green: #4a5d23;
    --swamp-green-light: #6b7d3a;
    --swamp-green-dark: #2d3a15;
    --brown: #6b4423;
    --brown-light: #8b5a3c;
    --brown-dark: #4a2f1a;
    --accent-frog: #7a9a4a;
    --accent-drop: #5a8a7a;
    --text-light: #e8e5d8;
    --text-dark: #2d2a1f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: linear-gradient(135deg, var(--swamp-green-dark) 0%, var(--brown-dark) 100%);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Влажная текстура фона */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(74, 93, 35, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(107, 68, 35, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(90, 138, 122, 0.2) 0%, transparent 50%);
    background-size: 200% 200%;
    animation: waveMove 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes waveMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Акцентные символы */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 100px, rgba(122, 154, 74, 0.03) 100px, rgba(122, 154, 74, 0.03) 102px),
        repeating-linear-gradient(90deg, transparent, transparent 100px, rgba(90, 138, 122, 0.03) 100px, rgba(90, 138, 122, 0.03) 102px);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

main {
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(8px);
    opacity: 0.4;
    z-index: 0;
    transform: scale(1.1);
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    text-align: left;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.hero-title {
    font-size: 5rem;
    font-weight: bold;
    color: var(--text-light);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 2rem;
    color: var(--accent-frog);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-bonus {
    background: rgba(45, 58, 21, 0.7);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 10px;
    border: 2px solid var(--accent-frog);
    margin-top: 2rem;
    animation: fadeInUp 1s ease 0.6s both;
}

.bonus-text {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--accent-frog);
    font-weight: 500;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent-frog);
    color: var(--text-light);
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn:hover {
    background: var(--swamp-green-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(122, 154, 74, 0.4);
}

.btn-register {
    font-size: 1.1rem;
    padding: 15px 40px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Game Section */
.game-section {
    padding: 4rem 0;
    background: rgba(45, 58, 21, 0.3);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--accent-frog);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.game-container {
    background: rgba(45, 58, 21, 0.6);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 10px;
    border: 2px solid rgba(122, 154, 74, 0.3);
}

.game-info {
    margin-bottom: 2rem;
    text-align: center;
}

.game-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 1rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-frog);
}

.game-words {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
    min-height: 200px;
}

.game-word {
    padding: 1.5rem;
    background: rgba(107, 68, 35, 0.5);
    border: 2px solid rgba(122, 154, 74, 0.3);
    border-radius: 8px;
    text-align: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.game-word:hover {
    background: rgba(122, 154, 74, 0.3);
    border-color: var(--accent-frog);
    transform: scale(1.05);
}

.game-word.correct {
    background: var(--accent-frog);
    border-color: var(--accent-frog);
}

.game-word.wrong {
    background: rgba(139, 0, 0, 0.5);
    border-color: #8b0000;
}

.game-controls {
    text-align: center;
    margin-top: 2rem;
}

.btn-game {
    padding: 12px 30px;
    font-size: 1rem;
}

.game-result {
    background: rgba(45, 58, 21, 0.8);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 10px;
    border: 2px solid var(--accent-frog);
    text-align: center;
    margin-top: 2rem;
}

.game-result h3 {
    font-size: 2rem;
    color: var(--accent-frog);
    margin-bottom: 1rem;
}

.game-result p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

/* About Section */
.about-section {
    padding: 4rem 0;
}

.content-text {
    max-width: 900px;
    margin: 0 auto;
}

.content-text h3 {
    font-size: 1.8rem;
    color: var(--accent-frog);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* Symbols Section */
.symbols-section {
    padding: 4rem 0;
    background: rgba(45, 58, 21, 0.3);
}

.symbols-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.symbol-card {
    background: rgba(45, 58, 21, 0.6);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 10px;
    border: 2px solid rgba(122, 154, 74, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.symbol-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(122, 154, 74, 0.3);
    border-color: var(--accent-frog);
}

.symbol-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.symbol-card h3 {
    font-size: 1.5rem;
    color: var(--accent-frog);
    margin-bottom: 1rem;
}

.symbol-card p {
    line-height: 1.7;
}

/* Cookie Modal */
.cookie-modal {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(45, 58, 21, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid var(--accent-frog);
    z-index: 10000;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

.cookie-modal-content {
    text-align: center;
}

.cookie-modal-content p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-accept {
    background: var(--accent-frog);
}

.btn-reject {
    background: rgba(139, 0, 0, 0.7);
}

.btn-reject:hover {
    background: rgba(139, 0, 0, 0.9);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-text {
        text-align: center;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .game-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .game-words {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .symbols-grid {
        grid-template-columns: 1fr;
    }

    .content-text {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero {
        min-height: 70vh;
        padding: 2rem 20px;
    }

    .game-words {
        grid-template-columns: 1fr;
    }
}

