* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Цветовая палитра "Гром и Молния" */
    --night-indigo: #1a1f3a;
    --thunder-dark: #0f1419;
    --lightning-yellow: #FFD700;
    --steel-gray: #4A5568;
    --ice-white: #F0F8FF;
    --blue-purple-accent: #6B46C1;
    --text-color: #1a1f3a;
    --text-light: #4A5568;
    --bg-light: #F0F8FF;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(15, 20, 25, 0.2);
    --shadow-lg: 0 10px 25px rgba(15, 20, 25, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--night-indigo);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--lightning-yellow);
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.logo img {
    height: 50px;
    width: auto;
    margin-right: 10px;
}

.navbar {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--ice-white);
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--lightning-yellow);
    transition: width 0.3s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--lightning-yellow);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--ice-white);
    transition: all 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle:hover span {
    background-color: var(--lightning-yellow);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--thunder-dark) 0%, var(--night-indigo) 50%, var(--blue-purple-accent) 100%);
    color: var(--ice-white);
    padding: 120px 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(107, 70, 193, 0.15) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
    z-index: 0;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: left;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    color: var(--ice-white);
    text-align: left;
}

.hero h1::first-letter {
    color: var(--lightning-yellow);
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--lightning-yellow);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s both;
    color: var(--ice-white);
    text-align: left;
    background: rgba(15, 20, 25, 0.5);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--lightning-yellow);
    line-height: 1.8;
}

.hero-description p {
    margin: 0;
    line-height: 1.8;
}

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, var(--thunder-dark) 0%, var(--night-indigo) 50%, var(--blue-purple-accent) 100%);
    color: var(--ice-white);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(107, 70, 193, 0.12) 0%, transparent 50%);
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.page-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--lightning-yellow) 0%, #FFA500 100%);
    color: var(--thunder-dark);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.btn-secondary {
    background: var(--steel-gray);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--night-indigo);
    transform: translateY(-2px);
}

/* Mini Game Section */
.mini-game-section {
    padding: 80px 20px;
    background: linear-gradient(to bottom, var(--ice-white) 0%, #ffffff 100%);
}

.mini-game-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--night-indigo);
}

.game-description {
    text-align: center;
    color: var(--steel-gray);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.game-container {
    max-width: 900px;
    margin: 0 auto;
}

.game-area {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    background: linear-gradient(180deg, #1a1f3a 0%, #0f1419 50%, #1a1f3a 100%);
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
    cursor: crosshair;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

/* Game Background */
.game-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.sky-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        #0f1419 0%, 
        #1a1f3a 30%, 
        #2d3561 60%, 
        #1a1f3a 100%);
}

.mountain-range {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35%;
    background: linear-gradient(to top, #0a0e14 0%, #1a1f3a 100%);
    clip-path: polygon(0% 100%, 10% 70%, 25% 80%, 40% 60%, 55% 75%, 70% 55%, 85% 65%, 100% 50%, 100% 100%);
}

.storm-clouds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 300px 120px at 15% 25%, rgba(107, 70, 193, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse 350px 140px at 50% 15%, rgba(26, 31, 58, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse 280px 110px at 85% 30%, rgba(107, 70, 193, 0.2) 0%, transparent 60%);
    animation: stormMove 15s ease-in-out infinite;
}

@keyframes stormMove {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(15px) translateY(5px); }
}

/* Lightning Container */
.lightning-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    padding-bottom: 140px;
    box-sizing: border-box;
}

.lightning-bolt {
    position: absolute;
    width: 8px;
    height: 60px;
    background: linear-gradient(180deg, 
        transparent 0%,
        var(--lightning-yellow) 20%,
        #ffffff 50%,
        var(--lightning-yellow) 80%,
        transparent 100%);
    box-shadow: 
        0 0 15px rgba(255, 215, 0, 0.8),
        0 0 30px rgba(255, 215, 0, 0.5),
        inset 0 0 10px rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    cursor: pointer;
    pointer-events: all;
    animation: lightningFall linear;
    transform-origin: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.lightning-bolt::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, var(--lightning-yellow) 0%, transparent 70%);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    animation: lightningGlow 0.3s ease-in-out infinite;
    pointer-events: none;
}

/* Glow effect element */
.lightning-bolt .glow-effect {
    position: absolute;
    top: 0;
    left: -2px;
    width: 12px;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255, 215, 0, 0.3) 50%,
        transparent 100%);
    filter: blur(3px);
    pointer-events: none;
}

@keyframes lightningFall {
    0% {
        transform: translateY(-80px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(420px) rotate(5deg);
        opacity: 0.8;
    }
}

@keyframes lightningGlow {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translateX(-50%) scale(1.2);
    }
}

.lightning-bolt.caught {
    animation: lightningCaught 0.4s ease-out forwards;
    pointer-events: none;
}

@keyframes lightningCaught {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.8;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

.lightning-bolt.missed {
    animation: lightningMissed 0.5s ease-out forwards;
    pointer-events: none;
}

@keyframes lightningMissed {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0.3;
        filter: grayscale(100%);
    }
}

/* Game UI */
.game-ui {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    gap: 15px;
    z-index: 10;
    max-height: 120px;
    overflow: visible;
}

.game-stats {
    flex: 1;
    display: flex;
    gap: 15px;
}

.stat-item {
    flex: 1;
    background: rgba(26, 31, 58, 0.95);
    padding: 1rem 1.2rem;
    border-radius: 10px;
    border: 2px solid var(--blue-purple-accent);
    backdrop-filter: blur(10px);
}

.stat-label {
    display: block;
    color: var(--ice-white);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.power-bar {
    width: 100%;
    height: 10px;
    background: rgba(74, 85, 104, 0.5);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    position: relative;
}

.power-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--lightning-yellow) 0%, var(--blue-purple-accent) 100%);
    border-radius: 5px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.stat-value {
    color: var(--ice-white);
    font-size: 0.9rem;
}

.stat-value strong {
    color: var(--lightning-yellow);
    font-size: 1.2rem;
}

.stat-value-large {
    display: block;
    color: var(--lightning-yellow);
    font-size: 1.8rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.stat-value-large.error {
    color: #ff6b6b;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.game-timer {
    background: rgba(26, 31, 58, 0.95);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    border: 2px solid var(--lightning-yellow);
    backdrop-filter: blur(10px);
    text-align: center;
    min-width: 100px;
}

.timer-label {
    display: block;
    color: var(--ice-white);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timer-value {
    display: block;
    color: var(--lightning-yellow);
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.timer-value.warning {
    color: #ff6b6b;
    animation: timerPulse 0.5s ease-in-out infinite;
}

@keyframes timerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Game Message */
.game-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(26, 31, 58, 0.98);
    color: var(--lightning-yellow);
    padding: 3rem 4rem;
    border-radius: 15px;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    border: 3px solid var(--lightning-yellow);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
    display: none;
    z-index: 20;
    backdrop-filter: blur(10px);
}

.game-message.show {
    display: block;
    animation: messageAppear 0.5s ease;
}

@keyframes messageAppear {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Game Start Overlay */
.game-start-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 20, 25, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    backdrop-filter: blur(5px);
}

.game-start-overlay.hidden {
    display: none;
}

.start-content {
    text-align: center;
    color: var(--ice-white);
    padding: 2rem;
}

.start-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--lightning-yellow);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.start-content p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--ice-white);
}

.start-hint {
    font-size: 0.9rem;
    color: var(--steel-gray);
    margin-bottom: 2rem;
    font-style: italic;
}

.start-game-btn {
    font-size: 1.2rem;
    padding: 15px 40px;
}

.game-instructions {
    background: var(--ice-white);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--blue-purple-accent);
}

.game-instructions p {
    color: var(--steel-gray);
    line-height: 1.8;
    margin: 0;
}

/* Quiz Game Styles */
.quiz-game {
    position: relative;
    width: 100%;
    min-height: 500px;
    border-radius: 15px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--night-indigo) 0%, var(--thunder-dark) 100%);
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

.quiz-start-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 20, 25, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    backdrop-filter: blur(5px);
}

.quiz-content {
    padding: 3rem;
    color: var(--ice-white);
}

.quiz-progress {
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(74, 85, 104, 0.5);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--lightning-yellow) 0%, var(--blue-purple-accent) 100%);
    border-radius: 6px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.question-counter {
    display: block;
    text-align: center;
    color: var(--ice-white);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.question-container {
    margin-bottom: 2rem;
}

.question-text {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--ice-white);
    text-align: center;
    line-height: 1.4;
}

.answers-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.answer-btn {
    background: rgba(26, 31, 58, 0.8);
    color: var(--ice-white);
    border: 2px solid var(--blue-purple-accent);
    padding: 1.5rem 2rem;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    text-align: center;
}

.answer-btn:hover:not(:disabled) {
    background: rgba(107, 70, 193, 0.3);
    border-color: var(--lightning-yellow);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.answer-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.answer-btn.correct {
    background: rgba(76, 175, 80, 0.3);
    border-color: #4caf50;
    color: #4caf50;
    font-weight: bold;
}

.answer-btn.incorrect {
    background: rgba(244, 67, 54, 0.3);
    border-color: #f44336;
    color: #f44336;
}

.quiz-result {
    text-align: center;
    padding: 2rem;
}

.quiz-result h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--lightning-yellow);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.quiz-result p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--ice-white);
    line-height: 1.6;
}

/* Content Sections */
.content-section {
    padding: 80px 20px;
    background: linear-gradient(to bottom, #ffffff 0%, var(--ice-white) 100%);
}

.intro-layout,
.game-intro,
.bonus-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.intro-image img,
.game-intro-image img,
.bonus-intro-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

.intro-content h2,
.game-intro-content h2,
.bonus-intro-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--night-indigo);
    position: relative;
    padding-left: 15px;
}

.intro-content h2::before,
.game-intro-content h2::before,
.bonus-intro-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 80%;
    background: linear-gradient(180deg, var(--lightning-yellow), var(--blue-purple-accent));
    border-radius: 2px;
}

.intro-content p,
.game-intro-content p,
.bonus-intro-content p {
    color: var(--steel-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Article Sections */
.article-section {
    padding: 80px 20px;
    background: linear-gradient(to bottom, var(--ice-white) 0%, #ffffff 100%);
}

.article-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--night-indigo);
    text-align: center;
    position: relative;
}

.article-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--lightning-yellow), var(--blue-purple-accent));
    border-radius: 2px;
}

.article-content {
    max-width: 900px;
    margin: 0 auto;
}

.article-content h3 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--night-indigo);
}

.article-content p {
    color: var(--steel-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.article-content-centered {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.article-content-centered h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.article-content-centered h3 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--night-indigo);
    text-align: center;
}

.article-content-centered p {
    color: var(--steel-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-align: left;
}

.article-content-centered .info-box {
    text-align: left;
    margin-bottom: 2rem;
}

.article-with-image .article-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.article-image {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.article-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.article-image-offset {
    margin-top: 7rem;
}

/* Layers Section */
.layers-section {
    padding: 80px 20px;
    background: linear-gradient(to bottom, #ffffff 0%, var(--ice-white) 100%);
}

.layers-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--night-indigo);
    position: relative;
}

.layers-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--lightning-yellow), var(--blue-purple-accent));
    border-radius: 2px;
}

.layers-content {
    max-width: 900px;
    margin: 0 auto;
}

.layer-item {
    background: var(--ice-white);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--blue-purple-accent);
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.layer-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.layer-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--night-indigo);
}

.layer-item p {
    color: var(--steel-gray);
    line-height: 1.8;
}

/* Registration Section */
.registration-section {
    padding: 80px 20px;
    background: linear-gradient(to bottom, var(--ice-white) 0%, #ffffff 100%);
}

.registration-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.registration-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--night-indigo);
}

.registration-description {
    color: var(--steel-gray);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.registration-form {
    background: var(--ice-white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.registration-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

/* Bonus Info Section */
.bonus-info-section {
    padding: 80px 20px;
    background: linear-gradient(to bottom, #ffffff 0%, var(--ice-white) 100%);
}

.bonus-info-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.bonus-info-content h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--night-indigo);
}

.info-box {
    background: var(--ice-white);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--lightning-yellow);
    box-shadow: var(--shadow);
}

.info-box h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--night-indigo);
}

.info-box p {
    color: var(--steel-gray);
    line-height: 1.8;
}

.bonus-info-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

/* Contact Section */
.contact-section {
    padding: 80px 20px;
    background: linear-gradient(to bottom, #ffffff 0%, var(--ice-white) 100%);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--night-indigo);
    position: relative;
    padding-left: 15px;
}

.contact-info h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 80%;
    background: linear-gradient(180deg, var(--lightning-yellow), var(--blue-purple-accent));
    border-radius: 2px;
}

.info-item {
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--ice-white);
    border-radius: 8px;
    border-left: 3px solid var(--blue-purple-accent);
}

.info-item strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--night-indigo);
}

.info-item p {
    color: var(--steel-gray);
    font-size: 1rem;
}

.contact-description {
    margin-top: 2rem;
}

.contact-description h3 {
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--night-indigo);
}

.contact-description p {
    color: var(--steel-gray);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.office-image {
    margin-top: 2rem;
}

.office-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

.contact-form-wrapper {
    position: sticky;
    top: 100px;
}

.contact-form {
    background: var(--ice-white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
}

.contact-form:hover {
    border-color: var(--blue-purple-accent);
}

.contact-form h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--night-indigo);
    position: relative;
    padding-left: 15px;
}

.contact-form h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 80%;
    background: linear-gradient(180deg, var(--lightning-yellow), var(--blue-purple-accent));
    border-radius: 2px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--night-indigo);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue-purple-accent);
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* Map Section */
.map-section {
    padding: 80px 20px;
    background: linear-gradient(to bottom, var(--ice-white) 0%, #ffffff 100%);
}

.map-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--night-indigo);
}

.map-container {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Before Message Section */
.before-message-section {
    padding: 80px 20px;
    background: linear-gradient(to bottom, #ffffff 0%, var(--ice-white) 100%);
}

.before-message-content {
    max-width: 900px;
    margin: 0 auto;
}

.before-message-content h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--night-indigo);
    text-align: center;
}

.faq-item {
    background: var(--ice-white);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--blue-purple-accent);
    box-shadow: var(--shadow);
}

.faq-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--night-indigo);
}

.faq-item p {
    color: var(--steel-gray);
    line-height: 1.8;
}

/* Thank You Section */
.thank-you-section {
    padding: 80px 20px;
    background: linear-gradient(to bottom, var(--ice-white) 0%, #ffffff 100%);
}

.thank-you-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.thank-you-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

.thank-you-content h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--night-indigo);
}

.thank-you-description {
    margin-bottom: 2rem;
}

.thank-you-description h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--night-indigo);
}

.thank-you-description p {
    color: var(--steel-gray);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--thunder-dark) 0%, var(--night-indigo) 100%);
    color: var(--ice-white);
    padding: 3rem 20px 2rem;
    margin-top: 4rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--lightning-yellow), transparent);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--ice-white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--lightning-yellow);
}

.footer-copyright {
    text-align: center;
    color: var(--ice-white);
    opacity: 0.8;
}

/* Cookies Pop-up */
.cookies-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 500px;
    background: var(--night-indigo);
    color: var(--ice-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    border: 2px solid var(--lightning-yellow);
    display: none;
}

.cookies-popup.show {
    display: block;
    animation: slideUp 0.5s ease;
}

.cookies-content p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.cookies-buttons {
    display: flex;
    gap: 1rem;
}

.cookies-buttons .btn {
    flex: 1;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--night-indigo);
        width: 100%;
        text-align: center;
        transition: left 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        gap: 0;
        border-top: 2px solid var(--lightning-yellow);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    }

    .nav-menu a {
        display: block;
        padding: 0.5rem;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
        background-color: var(--lightning-yellow);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
        background-color: var(--lightning-yellow);
    }

    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero h1 {
        font-size: 2rem;
        text-align: center;
    }

    .hero-content {
        text-align: center;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        text-align: center;
    }

    .hero-description {
        font-size: 1rem;
        padding: 1.5rem;
        text-align: left;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .intro-layout,
    .game-intro,
    .bonus-intro,
    .article-with-image .article-layout,
    .registration-wrapper,
    .bonus-info-wrapper,
    .contact-wrapper,
    .thank-you-wrapper {
        grid-template-columns: 1fr;
    }

    .article-image,
    .contact-form-wrapper {
        position: static;
    }

    .game-area {
        height: 600px;
        cursor: default;
        min-height: 500px;
    }

    .lightning-container {
        padding-bottom: 180px;
    }

    .game-ui {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        bottom: 10px;
        left: 10px;
        right: 10px;
        align-items: stretch;
        justify-content: space-between;
    }

    .game-stats {
        flex-direction: row;
        flex-wrap: wrap;
        flex: 1;
        gap: 8px;
    }

    .stat-item {
        flex: 1;
        min-width: calc(33.333% - 6px);
        padding: 1rem 0.9rem;
    }

    .stat-item:first-child {
        flex: 1 1 100%;
        min-width: 100%;
        padding: 1.1rem 1rem;
    }

    .stat-label {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    .power-bar {
        height: 10px;
        margin-bottom: 0.5rem;
    }

    .stat-value {
        font-size: 0.9rem;
    }

    .stat-value strong {
        font-size: 1.1rem;
    }

    .stat-value-large {
        font-size: 1.4rem;
    }

    .game-timer {
        flex: 0 0 auto;
        min-width: 100px;
        padding: 1rem 1.2rem;
    }

    .timer-label {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    .timer-value {
        font-size: 1.8rem;
    }

    .start-content {
        padding: 1.5rem;
    }

    .start-content h3 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .start-content p {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
    }

    .start-hint {
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
    }

    .start-game-btn {
        font-size: 1rem;
        padding: 12px 30px;
    }

    .lightning-bolt {
        width: 10px;
        height: 60px;
        min-width: 44px;
        min-height: 44px;
        padding: 17px;
        box-sizing: content-box;
        -webkit-tap-highlight-color: rgba(255, 215, 0, 0.3);
    }

    @keyframes lightningFall {
        0% {
            transform: translateY(-80px) rotate(0deg);
            opacity: 1;
        }
        100% {
            transform: translateY(380px) rotate(5deg);
            opacity: 0.8;
        }
    }

    .game-message {
        padding: 1.5rem 2rem;
        font-size: 1.3rem;
        max-width: 85%;
        line-height: 1.4;
    }

    .game-instructions {
        padding: 1.5rem;
    }

    .game-instructions p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .quiz-game {
        min-height: 450px;
    }

    .quiz-content {
        padding: 2rem 1.5rem;
    }

    .question-text {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }

    .answers-container {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .answer-btn {
        padding: 1.2rem 1.5rem;
        font-size: 1rem;
    }

    .quiz-result h3 {
        font-size: 1.6rem;
    }

    .quiz-result p {
        font-size: 1rem;
    }

    .cookies-popup {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 20px;
    }

    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero h1 {
        font-size: 1.75rem;
        text-align: center;
    }

    .hero-content {
        text-align: center;
    }

    .hero-subtitle {
        text-align: center;
    }

    .container {
        padding: 0 15px;
    }

    .game-area {
        height: 550px;
        min-height: 450px;
    }

    .lightning-container {
        padding-bottom: 200px;
    }

    .game-ui {
        bottom: 8px;
        left: 8px;
        right: 8px;
        gap: 6px;
        flex-direction: column;
    }

    .game-stats {
        gap: 6px;
        width: 100%;
    }

    .stat-item {
        padding: 0.9rem 0.8rem;
        min-width: calc(33.333% - 4px);
    }

    .stat-item:first-child {
        min-width: 100%;
        padding: 1rem 0.9rem;
    }

    .stat-label {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .stat-value {
        font-size: 0.85rem;
    }

    .stat-value strong {
        font-size: 1rem;
    }

    .stat-value-large {
        font-size: 1.3rem;
    }

    .power-bar {
        height: 9px;
        margin-bottom: 0.5rem;
    }

    .game-timer {
        width: 100%;
        padding: 0.9rem 0.8rem;
        min-width: auto;
    }

    .timer-label {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .timer-value {
        font-size: 1.6rem;
    }

    .lightning-bolt {
        width: 10px;
        height: 55px;
        padding: 17px;
    }

    @keyframes lightningFall {
        0% {
            transform: translateY(-80px) rotate(0deg);
            opacity: 1;
        }
        100% {
            transform: translateY(350px) rotate(5deg);
            opacity: 0.8;
        }
    }

    .game-message {
        padding: 1.2rem 1.5rem;
        font-size: 1.1rem;
        max-width: 90%;
    }

    .start-content h3 {
        font-size: 1.6rem;
    }

    .start-content p {
        font-size: 0.9rem;
    }

    .start-hint {
        font-size: 0.75rem;
    }

    .quiz-game {
        min-height: 400px;
    }

    .quiz-content {
        padding: 1.5rem 1rem;
    }

    .question-text {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
    }

    .answer-btn {
        padding: 1rem 1.2rem;
        font-size: 0.95rem;
    }

    .quiz-result h3 {
        font-size: 1.4rem;
    }

    .quiz-result p {
        font-size: 0.95rem;
    }
}

