* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #1d1d1f;
    line-height: 1.5;
    min-height: 100vh;
}

.content {
    min-height: 100vh;
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.container {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #2d3748;
    border-bottom: 3px solid #667eea;
    padding-bottom: 12px;
}

h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 24px 0 16px;
    color: #2d3748;
}

p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #4a5568;
}

ul {
    margin-left: 24px;
    margin-bottom: 24px;
}

li {
    font-size: 18px;
    margin-bottom: 12px;
    color: #4a5568;
    line-height: 1.5;
}

.section-list {
    background: linear-gradient(135deg, #f6f5ff 0%, #f0f0ff 100%);
    border-radius: 16px;
    padding: 24px;
    margin: 28px 0;
    border-left: 4px solid #667eea;
}

.section-list li {
    font-size: 18px;
    margin-bottom: 16px;
}

.emoji {
    font-size: 24px;
    margin-right: 12px;
}

.intro-text {
    font-size: 20px;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe9d1 100%);
    padding: 24px;
    border-radius: 16px;
    border-left: 4px solid #ff9800;
    margin-bottom: 32px;
    font-weight: 500;
}

.fact-item, .quote-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 16px;
    border: 2px solid #e2e8f0;
    counter-increment: item-counter;
    position: relative;
    padding-left: 52px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.fact-item:hover, .quote-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.1);
}

.fact-item:before {
    content: counter(item-counter) ".";
    position: absolute;
    left: 16px;
    top: 20px;
    font-weight: 800;
    color: #667eea;
    font-size: 20px;
}

.fact-list {
    counter-reset: item-counter;
}

.meme-item {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 14px;
    font-weight: 600;
    border-left: 4px solid #9f7aea;
    font-size: 18px;
}

.meme-item:nth-child(2) {
    border-left-color: #ed64a6;
}

.meme-item:nth-child(3) {
    border-left-color: #f6ad55;
}

.meme-item:nth-child(4) {
    border-left-color: #48bb78;
}

.quote-item {
    border-left: 4px solid #9f7aea;
    font-style: italic;
    padding-left: 24px;
    font-size: 18px;
}

.quote-item:before {
    content: "★";
    position: absolute;
    left: 12px;
    top: 18px;
    font-size: 20px;
    color: #9f7aea;
    font-weight: bold;
}

.page-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 2px solid #e2e8f0;
}

.nav-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
    text-decoration: none;
    display: inline-block;
}

.nav-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.4);
}

.nav-btn:disabled {
    background: #cbd5e0;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    margin: 24px 0;
}

.note {
    font-size: 16px;
    color: #718096;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 2px dashed #e2e8f0;
}

.highlight {
    color: #ed64a6;
    font-weight: 700;
}

.uppercase {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Стили для картинок */
.racoon-image {
    width: 220px;
    height: 220px;
    border-radius: 30px;
    object-fit: cover;
    margin: 0 auto 24px;
    display: block;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: 4px solid white;
}

.header-with-image {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.header-text {
    flex: 1;
    min-width: 300px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 30px 0;
}

.meme-image {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 3px solid white;
    transition: transform 0.3s;
}

.meme-image:hover {
    transform: scale(1.02);
}

.fact-image {
    width: 180px;
    height: 180px;
    border-radius: 30px;
    object-fit: cover;
    margin: 0 auto 20px;
    display: block;
    border: 4px solid #667eea;
}

.quote-image {
    width: 150px;
    height: 150px;
    border-radius: 30px;
    object-fit: cover;
    float: right;
    margin: 0 0 20px 20px;
    shape-outside: border-box;
    border: 4px solid #9f7aea;
}

@media (max-width: 768px) {
    .content {
        padding: 12px;
    }
    
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 32px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    .header-with-image {
        flex-direction: column;
        text-align: center;
    }
    
    .image-grid {
        grid-template-columns: 1fr;
    }
    
    .quote-image {
        float: none;
        margin: 0 auto 20px;
        display: block;
    }
}

.badge {
    display: inline-block;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-right: 8px;
}

.stats {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.stat {
    background: #f7fafc;
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    font-weight: 600;
    color: #2d3748;
}