/* 
ЦВЕТОВАЯ СХЕМА:
================

ОСНОВНЫЕ ЦВЕТА (2):
- Основной синий: #1E4EBD (rgb(30, 78, 189))
- Светло-кремовый фон: #F8F6ED (rgb(248, 246, 237))

ДОПОЛНИТЕЛЬНЫЕ ЦВЕТА (2):
- Дополнительный синий: #2149B1 (rgb(33, 73, 177))
- Светло-голубой акцент: #BFE0F7 (rgb(191, 224, 247))

ДОПОЛНИТЕЛЬНЫЕ АКЦЕНТЫ:
- Желтый акцент: #F7E080 (rgb(247, 224, 128))
- Зеленовато-желтый: #EED16B (rgb(238, 209, 107))
- Светло-зеленовато-желтый: #BFD760 (rgb(191, 215, 96))
*/

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Coolvetica Regular', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1E4EBD;
    background-color: #F8F6ED;
    padding-top: 45px; /* Минимальный отступ для фиксированной шапки */
}

@media (max-width: 768px) {
    body {
        padding-top: 70px; /* Минимальный отступ для мобильных устройств */
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 80px; /* Минимальный отступ для очень маленьких экранов */
    }
}

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

/* Header */
.header {
    background: linear-gradient(135deg, #1E4EBD 0%, #2149B1 100%);
    color: white;
    padding: 0.4rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(30, 78, 189, 0.2);
    transition: all 0.3s ease;
    min-height: 50px;
}

/* Эффект при скроллинге */
.header.scrolled {
    background: rgba(30, 78, 189, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(30, 78, 189, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    line-height: 1.1;
    flex-shrink: 0;
}

.logo i {
    color: #F7E080;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.logo {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.logo-image {
    height: 28px;
    width: auto;
    margin-right: 0.2rem;
}

.nav {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-size: 0.85rem;
    white-space: nowrap;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    background-color: rgba(255,255,255,0.2);
    font-weight: 600;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #1E4EBD 0%, #2149B1 100%);
    color: white;
    padding: 2.5rem 0;
    text-align: center;
    margin-top: 0;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
}

/* Sections */
.section {
    padding: 2rem 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #1E4EBD;
}

/* Materials grid */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.material-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(30, 78, 189, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #BFE0F7;
}

.material-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(30, 78, 189, 0.2);
}

.material-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1E4EBD 0%, #2149B1 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.material-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1E4EBD;
}

.material-card p {
    color: #4A5568;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.material-link {
    color: #1E4EBD;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.material-link:hover {
    color: #2149B1;
    transform: translateX(4px);
}

.material-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.material-link:hover::after {
    transform: translateX(4px);
}

/* Guides grid */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.guide-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(30, 78, 189, 0.1);
    border: 1px solid #BFE0F7;
}

.guide-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1E4EBD;
}

.guide-card ul {
    list-style: none;
}

.guide-card li {
    margin-bottom: 0.5rem;
}

.guide-card a {
    color: #1E4EBD;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.guide-card a:hover {
    color: #2149B1;
}


/* About section */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2d3748;
}

.about-text ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.about-text li {
    margin-bottom: 0.5rem;
    color: #4a5568;
}

.about-text p {
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #718096;
    font-weight: 500;
}

/* Footer */
.footer {
    background: #2d3748;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffd700;
}

.footer-section p {
    color: #a0aec0;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ffd700;
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 1rem;
    text-align: center;
    color: #a0aec0;
}

/* Responsive design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .logo-image {
        height: 30px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .hero {
        margin-top: 3rem; /* Больший отступ на мобильных */
    }
    
    .page-hero {
        margin-top: 2rem; /* Больший отступ на мобильных */
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .materials-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        flex-direction: row;
        justify-content: space-around;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo-image {
        height: 25px;
    }
    
    .hero {
        padding: 2rem 0;
        margin-top: 4rem; /* Еще больший отступ на очень маленьких экранах */
    }
    
    .page-hero {
        margin-top: 3rem; /* Больший отступ на очень маленьких экранах */
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .material-card,
    .guide-card,
    .community-card {
        padding: 1.5rem;
    }
    
    .about-stats {
        flex-direction: column;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

/* Animation for cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.material-card,
.guide-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Hover effects */
.material-card:hover .material-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}


/* Page-specific styles */
.page-hero {
    background: linear-gradient(135deg, #1E4EBD 0%, #2149B1 100%);
    color: white;
    padding: 0.8rem 0;
    margin-top: 0; /* Убран отступ от шапки */
}

.breadcrumb {
    margin-bottom: 0.3rem;
    font-size: 0.8rem;
    opacity: 0.8;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
}

/* Новая структура с верхним меню */
.wiki-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 20px;
    min-height: calc(100vh - 200px);
}

.wiki-nav {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
}

.wiki-nav-section {
    flex: 1;
    min-width: 200px;
}

.wiki-nav-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1E4EBD;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #BFE0F7;
}

.wiki-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.wiki-nav-link {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    color: #4A5568;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    background: #F8F6ED;
    border: 1px solid #BFE0F7;
}

.wiki-nav-link:hover {
    background: #BFE0F7;
    color: #1E4EBD;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(30, 78, 189, 0.2);
}

.wiki-nav-link.active {
    background: #1E4EBD;
    color: white;
    font-weight: 500;
    border-color: #1E4EBD;
}

.content-area {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 2rem;
    overflow: hidden;
}

.content-section {
    padding: 2rem 0;
    margin-top: 80px; /* Отступ для фиксированной навигации Мангистау */
}

.content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.content-main {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(30, 78, 189, 0.1);
    border: 1px solid #BFE0F7;
}

.markdown-content h2 {
    color: #1E4EBD;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #BFE0F7;
}

.markdown-content h3 {
    color: #1E4EBD;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem;
}

.markdown-content h4 {
    color: #4A5568;
    font-size: 1rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem;
}

.markdown-content ul, .markdown-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.markdown-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(30, 78, 189, 0.1);
    border: 1px solid #BFE0F7;
}

.sidebar-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1E4EBD;
}

.sidebar-card ul {
    list-style: none;
    padding: 0;
}

.sidebar-card li {
    margin-bottom: 0.5rem;
}

.sidebar-card a {
    color: #1E4EBD;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.sidebar-card a:hover {
    color: #2149B1;
}

/* Info and warning boxes */
.info-box, .warning-box {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-box {
    background: #e6fffa;
    border-left: 4px solid #38b2ac;
    color: #234e52;
}

.warning-box {
    background: #fef5e7;
    border-left: 4px solid #ed8936;
    color: #744210;
}

.info-box i, .warning-box i {
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

/* Code examples */
.code-example {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.code-example h4 {
    margin-top: 0;
    color: #2d3748;
}

.code-example code {
    background: #edf2f7;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

/* Template examples */
.template-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.template-card {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
}

.template-card h4 {
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.template-card p {
    margin: 0.5rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.template-card small {
    color: #718096;
    font-style: italic;
}

/* Nickname examples */
.good-examples, .bad-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.nickname-good {
    background: #c6f6d5;
    color: #22543d;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.nickname-bad {
    background: #fed7d7;
    color: #742a2a;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

/* Checklist */
.checklist {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.checklist label {
    display: block;
    margin-bottom: 0.5rem;
    cursor: pointer;
    font-weight: 500;
}

.checklist input[type="checkbox"] {
    margin-right: 0.5rem;
}

/* Principles grid */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.principle-card {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.principle-card h4 {
    color: #2d3748;
    margin-bottom: 0.5rem;
}

/* Do/Don't grid */
.do-dont-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.do-card, .dont-card {
    border-radius: 8px;
    padding: 1.5rem;
}

.do-card {
    background: #f0fff4;
    border: 1px solid #9ae6b4;
}

.dont-card {
    background: #fff5f5;
    border: 1px solid #feb2b2;
}

.do-card h4, .dont-card h4 {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Sources grid */
.sources-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.source-card {
    border-radius: 8px;
    padding: 1.5rem;
}

.source-card.good {
    background: #f0fff4;
    border: 1px solid #9ae6b4;
}

.source-card.bad {
    background: #fff5f5;
    border: 1px solid #feb2b2;
}

.source-card h4 {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Navigation active state */
.nav-link.active {
    background-color: rgba(255,255,255,0.2);
    font-weight: 600;
}

/* FAQ styles */
.faq-item {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.faq-item h3 {
    color: #2d3748;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-item h3::before {
    content: "❓";
    font-size: 1rem;
}

.faq-item p {
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

/* Additional styles for new pages */
.image-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.image-type-card {
    background: #F7F6ED;
    border: 1px solid #BFE0F7;
    border-radius: 8px;
    padding: 1rem;
}

.image-type-card h4 {
    color: #1E4EBD;
    margin-bottom: 0.5rem;
}

.license-good, .license-bad {
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.license-good {
    background: #E6FFFA;
    border-left: 4px solid #38B2AC;
}

.license-bad {
    background: #FEF5E7;
    border-left: 4px solid #ED8936;
}

.source-types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.source-type-card {
    border-radius: 8px;
    padding: 1.5rem;
}

.source-type-card.primary {
    background: #E6FFFA;
    border: 1px solid #9AE6B4;
}

.source-type-card.secondary {
    background: #F0F9FF;
    border: 1px solid #93C5FD;
}

.source-type-card h4 {
    color: #1E4EBD;
    margin-bottom: 1rem;
}

.citation-example {
    background: #F7F6ED;
    border: 1px solid #BFE0F7;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.citation-example h4 {
    color: #1E4EBD;
    margin-bottom: 0.5rem;
}

.citation-example code {
    background: #E6F3FF;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #1E4EBD;
}

.bibliography-example {
    background: #F7F6ED;
    border: 1px solid #BFE0F7;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.bibliography-example h4 {
    color: #1E4EBD;
    margin-bottom: 1rem;
}

.language-rules {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.rule-card {
    border-radius: 8px;
    padding: 1.5rem;
}

.rule-card.good {
    background: #F0FFF4;
    border: 1px solid #9AE6B4;
}

.rule-card.bad {
    background: #FFF5F5;
    border: 1px solid #FEB2B2;
}

.rule-card h4 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.example-good, .example-bad {
    margin: 1.5rem 0;
}

.example-good blockquote {
    background: #F0FFF4;
    border-left: 4px solid #9AE6B4;
    padding: 1rem;
    margin: 0;
    border-radius: 0 8px 8px 0;
}

.example-bad blockquote {
    background: #FFF5F5;
    border-left: 4px solid #FEB2B2;
    padding: 1rem;
    margin: 0;
    border-radius: 0 8px 8px 0;
}

.npov-examples {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.npov-card {
    border-radius: 8px;
    padding: 1rem;
}

.npov-card h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.grammar-errors {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

.error-example {
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.error-example h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.linking-words {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.word-category {
    background: #F7F6ED;
    border: 1px solid #BFE0F7;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.word-category h4 {
    color: #1E4EBD;
    margin-bottom: 0.5rem;
}

.rating-system {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.rating-card {
    border-radius: 8px;
    padding: 1.5rem;
}

.rating-card.excellent {
    background: #F0FFF4;
    border: 1px solid #9AE6B4;
}

.rating-card.good {
    background: #E6F3FF;
    border: 1px solid #93C5FD;
}

.rating-card.poor {
    background: #FFF5F5;
    border: 1px solid #FEB2B2;
}

.rating-card h4 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.bad-sources {
    margin: 1.5rem 0;
}

.bad-source-card {
    background: #FFF5F5;
    border: 1px solid #FEB2B2;
    border-radius: 8px;
    padding: 1.5rem;
}

.bad-source-card h4 {
    color: #E53E3E;
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Screenshot styles */
.screenshot-container {
    margin: 2rem 0;
    text-align: center;
    background: #F7F6ED;
    border: 1px solid #BFE0F7;
    border-radius: 12px;
    padding: 1.5rem;
}

.screenshot {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(30, 78, 189, 0.15);
    border: 1px solid #BFE0F7;
    transition: transform 0.3s ease;
}

.screenshot:hover {
    transform: scale(1.02);
}

.screenshot-caption {
    margin-top: 1rem;
    font-style: italic;
    color: #4A5568;
    font-size: 0.9rem;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.screenshot-item {
    background: #F7F6ED;
    border: 1px solid #BFE0F7;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.screenshot-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(30, 78, 189, 0.1);
}

.screenshot-item h4 {
    color: #1E4EBD;
    margin: 1rem 0 0.5rem;
    font-size: 1.1rem;
}

.screenshot-item p {
    color: #4A5568;
    font-size: 0.9rem;
    margin: 0;
}

/* Wikipedia Logo Styles */
.wikipedia-logo-container {
    text-align: center;
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #F8F6ED 0%, #F0F4F8 100%);
    border: 1px solid #BFE0F7;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(30, 78, 189, 0.1);
}

.wikipedia-logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.wikipedia-logo:hover {
    transform: scale(1.05);
}

.wikipedia-description {
    color: #4A5568;
    font-style: italic;
    font-size: 0.9rem;
    margin: 0;
}

.footer-wikipedia-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.footer-wikipedia-logo:hover {
    background: rgba(255, 255, 255, 0.2);
}

.footer-wikipedia-logo-img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.footer-wikipedia-logo span {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Fun Facts Page Styles */
.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.fact-card {
    background: linear-gradient(135deg, #F8F6ED 0%, #F0F4F8 100%);
    border: 1px solid #BFE0F7;
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(30, 78, 189, 0.1);
}

.fact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(30, 78, 189, 0.2);
}

.fact-number {
    position: absolute;
    top: -15px;
    left: 20px;
    background: linear-gradient(135deg, #1E4EBD 0%, #2149B1 100%);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(30, 78, 189, 0.3);
}

.fact-card h3 {
    color: #1E4EBD;
    margin: 1rem 0 1rem 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.fact-card p {
    color: #4A5568;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.fact-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #BFE0F7;
    font-size: 2rem;
    opacity: 0.7;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-button.primary {
    background: linear-gradient(135deg, #1E4EBD 0%, #2149B1 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(30, 78, 189, 0.3);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 78, 189, 0.4);
}

.cta-button.secondary {
    background: transparent;
    color: #1E4EBD;
    border-color: #1E4EBD;
}

.cta-button.secondary:hover {
    background: #1E4EBD;
    color: white;
    transform: translateY(-2px);
}

/* Responsive design for content pages */
@media (max-width: 768px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .page-title {
        font-size: 2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .do-dont-grid,
    .sources-grid,
    .source-types,
    .language-rules,
    .npov-examples,
    .grammar-errors {
        grid-template-columns: 1fr;
    }
    
    .principles-grid,
    .image-types,
    .rating-system {
        grid-template-columns: 1fr;
    }
    
    .template-examples {
        grid-template-columns: 1fr;
    }
    
    .screenshot-grid {
        grid-template-columns: 1fr;
    }
    
    .screenshot-container {
        padding: 1rem;
    }
    
    .screenshot {
        max-width: 100%;
    }
    
    .facts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .fact-card {
        padding: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-button {
        text-align: center;
        justify-content: center;
    }
    
    /* Mobile header fixes */
    .header {
        padding: 0.8rem 0;
        min-height: auto;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .logo {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }
    
    .logo-image {
        width: 35px;
        height: 35px;
        margin-right: 0.8rem;
    }
    
    .nav {
        gap: 0.8rem;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 0.5rem 0;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-link {
        white-space: nowrap;
        font-size: 1rem;
        padding: 0.6rem 1rem;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.2);
        min-width: fit-content;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: rgba(255, 255, 255, 0.25);
        border-color: rgba(255, 255, 255, 0.4);
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .header {
        padding: 0.6rem 0;
    }
    
    .logo {
        font-size: 1.4rem;
        line-height: 1.1;
    }
    
    .logo-image {
        width: 32px;
        height: 32px;
        margin-right: 0.6rem;
    }
    
    .nav {
        gap: 0.6rem;
        padding: 0.3rem 0;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 0.8rem;
        min-width: auto;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        gap: 0.8rem;
    }
}

/* Mangistau Page Styles */
.mangistau-toc {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.toc-section {
    background: linear-gradient(135deg, #F8F6ED 0%, #F0F4F8 100%);
    border: 1px solid #BFE0F7;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.toc-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(30, 78, 189, 0.15);
}

.toc-section h3 {
    color: #1E4EBD;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-section li {
    margin: 0.5rem 0;
}

.toc-section a {
    color: #4A5568;
    text-decoration: none;
    transition: all 0.2s ease;
    display: block;
    padding: 0.3rem 0;
}

.toc-section a:hover {
    color: #1E4EBD;
    padding-left: 0.5rem;
}

.highlight-box {
    background: linear-gradient(135deg, #F7E080 0%, #F9E9A8 100%);
    border-left: 4px solid #1E4EBD;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.highlight-box h4 {
    color: #1E4EBD;
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.highlight-box p {
    margin: 0;
    color: #4A5568;
    line-height: 1.6;
}

.species-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.species-item {
    background: #F7F6ED;
    border: 1px solid #BFE0F7;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.species-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30, 78, 189, 0.1);
}

.species-item h4 {
    color: #1E4EBD;
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.species-item em {
    color: #4A5568;
    font-style: italic;
    font-size: 0.95rem;
}

.species-item p {
    margin: 0.5rem 0;
}

.species-item a {
    color: #1E4EBD;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.species-item a:hover {
    color: #2149B1;
    gap: 0.7rem;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4A5568;
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(191, 224, 247, 0.1);
    border-radius: 8px;
}

/* Responsive styles for Mangistau page */
@media (max-width: 768px) {
    .mangistau-toc {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .toc-section {
        padding: 1rem;
    }
    
    .species-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .species-item {
        padding: 1rem;
    }
}

/* Wikipedia Logo Responsive Styles */
@media (max-width: 768px) {
    .wikipedia-logo-container {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .wikipedia-logo {
        max-width: 100px;
    }
    
    .footer-wikipedia-logo {
        flex-direction: column;
        text-align: center;
        gap: 0.3rem;
    }
    
    .footer-wikipedia-logo-img {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .wikipedia-logo-container {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .wikipedia-logo {
        max-width: 80px;
    }
    
    .wikipedia-description {
        font-size: 0.8rem;
    }
}

/* Sitemap Styles */
.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.sitemap-category {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sitemap-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.sitemap-category h3 {
    color: #1E4EBD;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 2px solid #BFE0F7;
    padding-bottom: 0.5rem;
}

.sitemap-category h3 i {
    color: #2149B1;
    font-size: 1.1rem;
}

.sitemap-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sitemap-category li {
    margin-bottom: 0.5rem;
}

.sitemap-category a {
    color: #333;
    text-decoration: none;
    display: block;
    padding: 0.3rem 0;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 1rem;
}

.sitemap-category a:hover {
    color: #1E4EBD;
    background-color: #F8F6ED;
    padding-left: 1.5rem;
}

.sitemap-category a::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #BFE0F7;
    font-weight: bold;
    transition: all 0.3s ease;
}

.sitemap-category a:hover::before {
    color: #1E4EBD;
    transform: translateX(2px);
}

/* Responsive sitemap */
@media (max-width: 768px) {
    .sitemap-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .sitemap-category {
        padding: 1rem;
    }
    
    .sitemap-category h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .section-subtitle {
        font-size: 1rem;
    }
    
    .sitemap-category {
        padding: 0.8rem;
    }
    
    .sitemap-category h3 {
        font-size: 1rem;
    }
    
    .sitemap-category a {
        font-size: 0.9rem;
    }
}

/* Compact Vertical Navigation */
.mangistau-nav {
    background: #F8F6ED;
    border-bottom: 1px solid #BFE0F7;
    padding: 0.4rem 0;
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    z-index: 50;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: transform 0.3s ease-in-out;
}

.mangistau-nav.hidden {
    transform: translateY(-100%);
}

.mangistau-navigation {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-category {
    background: white;
    border: 1px solid #BFE0F7;
    border-radius: 4px;
    padding: 0.4rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.nav-category-title {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #1E4EBD;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid #E5E5E5;
}

.nav-category-title i {
    font-size: 0.6rem;
    color: #2149B1;
}

.nav-tab {
    display: block;
    padding: 0.2rem 0.4rem;
    background: transparent;
    border: none;
    border-radius: 2px;
    color: #555;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 400;
    transition: all 0.2s ease;
    text-align: left;
    line-height: 1.3;
}

.nav-tab:hover {
    background: #F0F8FF;
    color: #1E4EBD;
}

.nav-tab.active {
    background: #1E4EBD;
    color: white;
    font-weight: 500;
}

.nav-tab.active::before {
    content: "•";
    margin-right: 0.3rem;
    font-size: 0.6rem;
}

/* Responsive compact navigation */
@media (max-width: 768px) {
    .mangistau-nav {
        top: 50px;
    }
    
    .mangistau-navigation {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.2rem;
    }
    
    .nav-category {
        padding: 0.3rem;
    }
    
    .nav-tab {
        font-size: 0.65rem;
        padding: 0.15rem 0.3rem;
    }
    
    .nav-category-title {
        font-size: 0.65rem;
        margin-bottom: 0.2rem;
    }
    
    .content-section {
        margin-top: 120px; /* Больший отступ для мобильных */
    }
}

@media (max-width: 480px) {
    .mangistau-nav {
        padding: 0.3rem 0;
        top: 50px;
    }
    
    .mangistau-navigation {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }
    
    .nav-category {
        padding: 0.3rem;
    }
    
    .nav-tab {
        font-size: 0.6rem;
        padding: 0.15rem 0.25rem;
    }
    
    .nav-category-title {
        font-size: 0.6rem;
    }
    
    .content-section {
        margin-top: 200px; /* Еще больший отступ для очень маленьких экранов */
    }
}

@media (max-width: 480px) {
    .mangistau-nav {
        padding: 0.5rem 0;
    }
    
    .nav-section {
        padding: 0.8rem;
    }
    
    .nav-section h4 {
        font-size: 0.85rem;
    }
    
    .nav-item {
        font-size: 0.8rem;
        padding: 0.3rem 0.4rem;
    }
}

/* Classification Table Styles */
.classification-table {
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.classification-table thead {
    background: linear-gradient(135deg, #1E4EBD 0%, #2149B1 100%);
    color: white;
}

.classification-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 2px solid #BFE0F7;
}

.classification-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #e0e0e0;
    color: #333;
    font-size: 0.9rem;
}

.classification-table tbody tr:hover {
    background-color: #F8F6ED;
}

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

.classification-table td:first-child {
    font-weight: 500;
    color: #1E4EBD;
    width: 25%;
}

.classification-table td:nth-child(2) {
    width: 35%;
}

.classification-table td:nth-child(3) {
    font-style: italic;
    color: #555;
    width: 40%;
}

/* Responsive classification table */
@media (max-width: 768px) {
    .classification-table {
        font-size: 0.85rem;
    }
    
    .classification-table th,
    .classification-table td {
        padding: 0.6rem 0.8rem;
    }
    
    .classification-table th {
        font-size: 0.85rem;
    }
    
    .classification-table td {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .classification-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .classification-table th,
    .classification-table td {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
}

/* Wiki Article Content Styles */
.wiki-article {
    line-height: 1.8;
}

.wiki-article h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    color: #1E4EBD;
    border-bottom: 2px solid #BFE0F7;
    padding-bottom: 0.5rem;
}

.wiki-article h2 i {
    margin-right: 0.5rem;
    color: #2149B1;
}

.wiki-article h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: #1E4EBD;
}

.wiki-article p {
    margin-bottom: 1.2rem;
    text-align: justify;
}

.wiki-article ul {
    margin: 1rem 0 1.5rem 2rem;
    list-style-type: disc;
}

.wiki-article ol {
    margin: 1rem 0 1.5rem 2rem;
    list-style-type: decimal;
}

.wiki-article li {
    margin-bottom: 0.6rem;
    line-height: 1.7;
}

.wiki-article ul ul {
    margin: 0.5rem 0 0.5rem 1.5rem;
    list-style-type: circle;
}

.wiki-article strong {
    font-weight: 600;
    color: #1E4EBD;
}

.wiki-article em {
    font-style: italic;
    color: #555;
}

.wiki-article .wiki-image {
    display: block;
    margin: 2rem auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive wiki article */
@media (max-width: 768px) {
    .wiki-article h2 {
        font-size: 1.4rem;
    }
    
    .wiki-article h3 {
        font-size: 1.2rem;
    }
    
    .wiki-article ul,
    .wiki-article ol {
        margin-left: 1.5rem;
    }
}

@media (max-width: 480px) {
    .wiki-article h2 {
        font-size: 1.3rem;
    }
    
    .wiki-article h3 {
        font-size: 1.1rem;
    }
    
    .wiki-article ul,
    .wiki-article ol {
        margin-left: 1rem;
    }
    
    .wiki-article p {
        text-align: left;
    }
}

/* Glossary Styles */
.glossary-section {
    margin: 2rem 0;
}

.glossary-section h2 {
    color: #1E4EBD;
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid #BFE0F7;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.glossary-section h2::before {
    content: "📚";
    font-size: 1.2rem;
}

.glossary-entry {
    background: #F8F6ED;
    border: 1px solid #BFE0F7;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    transition: all 0.3s ease;
}

.glossary-entry:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 78, 189, 0.1);
}

.glossary-entry h3 {
    color: #1E4EBD;
    font-size: 1.2rem;
    margin: 0 0 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.glossary-entry h3::before {
    content: "🔍";
    font-size: 1rem;
}

.glossary-entry p {
    margin: 0;
    line-height: 1.6;
    color: #4A5568;
}

.glossary-entry em {
    color: #1E4EBD;
    font-style: italic;
    font-weight: 500;
}

/* Responsive glossary */
@media (max-width: 768px) {
    .glossary-section h2 {
        font-size: 1.5rem;
    }
    
    .glossary-entry {
        padding: 1rem;
    }
    
    .glossary-entry h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .glossary-section h2 {
        font-size: 1.3rem;
    }

    .glossary-entry h3 {
        font-size: 1rem;
    }
}

/* Медиа-запросы для верхнего меню */
@media (max-width: 1024px) {
    .wiki-nav {
        flex-direction: column;
        gap: 1.5rem;
    }

    .wiki-nav-section {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .wiki-container {
        padding: 1rem 10px;
    }

    .wiki-nav {
        padding: 1rem;
        gap: 1rem;
    }

    .wiki-nav-title {
        font-size: 1rem;
    }

    .wiki-nav-links {
        gap: 0.25rem;
    }

    .wiki-nav-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .wiki-nav-links {
        flex-direction: column;
    }

    .wiki-nav-link {
        width: 100%;
        text-align: center;
    }
}

/* Стили для Зала славы */
.hall-intro h2 {
    color: white !important;
}

.hall-intro .lead {
    color: white !important;
}

.hall-intro {
    background: linear-gradient(135deg, #1E4EBD, #2149B1);
    padding: 3rem 2rem;
    border-radius: 16px;
    margin-bottom: 3rem;
}

.hall-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Стили для ссылки на фотографии */
.photo-resources {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #F8F6ED 0%, #F0F4F8 100%);
    border-radius: 12px;
    border: 2px solid #BFE0F7;
}

.photo-resources h4 {
    color: #1E4EBD;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.photo-link-container {
    margin: 1.5rem 0;
}

.photo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #1E4EBD, #2149B1);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(30, 78, 189, 0.3);
    transition: all 0.3s ease;
    border: 2px solid #1E4EBD;
}

.photo-link:hover {
    background: linear-gradient(135deg, #2149B1, #1E4EBD);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 78, 189, 0.4);
    color: white;
    text-decoration: none;
}

.photo-link i {
    font-size: 1.2rem;
}

.photo-note {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(30, 78, 189, 0.1);
    border-radius: 8px;
    border-left: 4px solid #1E4EBD;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Стили для улучшенной страницы задания */
.assignment-steps {
    margin: 3rem 0;
}

.assignment-steps h2 {
    text-align: center;
    color: #1E4EBD;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid #E2E8F0;
    margin-bottom: 2rem;
    overflow: hidden;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 2rem 1rem 2rem;
    background: linear-gradient(135deg, #F8F6ED 0%, #F0F4F8 100%);
    border-bottom: 1px solid #E2E8F0;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, #1E4EBD, #2149B1);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(30, 78, 189, 0.3);
}

.step-header h3 {
    color: #1E4EBD;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.step-content {
    padding: 2rem;
}

.step-content p {
    color: #4A5568;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1.1rem;
}

.step-content ul {
    color: #4A5568;
    padding-left: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.step-content li {
    margin-bottom: 0.75rem;
    position: relative;
}

.step-content li::marker {
    color: #1E4EBD;
    font-weight: bold;
}

/* Выделенная плашка с фотографиями */
.photo-highlight-box {
    background: linear-gradient(135deg, #1E4EBD, #2149B1);
    border-radius: 16px;
    padding: 2.5rem;
    margin: 3rem 0;
    box-shadow: 0 8px 24px rgba(30, 78, 189, 0.3);
    position: relative;
    overflow: hidden;
}

.photo-highlight-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.photo-highlight-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.photo-highlight-icon {
    flex-shrink: 0;
}

.photo-highlight-icon i {
    font-size: 3rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.photo-highlight-text {
    flex: 1;
}

.photo-highlight-text h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.photo-highlight-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.photo-highlight-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.photo-highlight-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    color: white;
    text-decoration: none;
}

.photo-highlight-link i {
    font-size: 1.2rem;
}

/* Стили для тем исследования */
.assignment-topics {
    margin: 3rem 0;
}

.assignment-topics h2 {
    text-align: center;
    color: #1E4EBD;
    margin-bottom: 2rem;
    font-size: 2rem;
}

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

.topic-category {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.topic-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.topic-icon i {
    font-size: 2.5rem;
    color: #1E4EBD;
}

.topic-category h3 {
    color: #1E4EBD;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.topic-category ul {
    text-align: left;
    color: #4A5568;
    padding-left: 1.5rem;
}

.topic-category li {
    margin-bottom: 0.5rem;
}

/* Стили для ресурсов */
.assignment-resources {
    margin: 3rem 0;
}

.assignment-resources h2 {
    text-align: center;
    color: #1E4EBD;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.resource-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.resource-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.resource-icon i {
    font-size: 2.5rem;
    color: #1E4EBD;
}

.resource-card h3 {
    color: #1E4EBD;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.resource-card p {
    color: #4A5568;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.resource-card ul {
    text-align: left;
    color: #4A5568;
    padding-left: 1.5rem;
}

.resource-card li {
    margin-bottom: 0.5rem;
}

.resource-note {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(30, 78, 189, 0.1);
    border-radius: 8px;
    border-left: 4px solid #1E4EBD;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Стили для примеров */
.assignment-examples {
    margin: 3rem 0;
}

.assignment-examples h2 {
    text-align: center;
    color: #1E4EBD;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.example-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.example-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.example-icon i {
    font-size: 2.5rem;
    color: #1E4EBD;
}

.example-card h3 {
    color: #1E4EBD;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.example-card p {
    color: #4A5568;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.example-card ul {
    text-align: left;
    color: #4A5568;
    padding-left: 1.5rem;
}

.example-card li {
    margin-bottom: 0.5rem;
}

/* Адаптивные стили для страницы задания */
@media (max-width: 768px) {
    .step-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .step-content {
        padding: 1.5rem;
    }
    
    .photo-highlight-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .photo-highlight-text h3 {
        font-size: 1.5rem;
    }
    
    .photo-highlight-link {
        width: 100%;
        justify-content: center;
    }
}

/* Breadcrumb стили */
.breadcrumb {
    color: #1E4EBD !important;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.breadcrumb a {
    color: #1E4EBD !important;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    color: #2149B1 !important;
    text-decoration: underline;
}

.breadcrumb span {
    color: #4A5568 !important;
    font-weight: 600;
}

/* Навигационные кнопки - уменьшенные */
.page-navigation {
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid #BFE0F7;
    border-bottom: 1px solid #BFE0F7;
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.nav-button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: #1E4EBD;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(30, 78, 189, 0.2);
}

.nav-button:hover {
    background: #2149B1;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(30, 78, 189, 0.3);
}

.nav-button.prev {
    background: #4A5568;
}

.nav-button.prev:hover {
    background: #2D3748;
}

.nav-button.next {
    background: #1E4EBD;
}

.nav-button.next:hover {
    background: #2149B1;
}

/* Адаптивность для навигационных кнопок */
@media (max-width: 768px) {
    .nav-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .nav-button {
        width: 100%;
        justify-content: center;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}