* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #1a2a32;
    line-height: 1.5;
    position: relative;
    overflow-x: hidden;
}

/* ========== ФОНОВЫЕ ДЕКОРАЦИИ ========== */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.bg-decoration::before {
    content: "🧪";
    position: absolute;
    font-size: 300px;
    opacity: 0.03;
    bottom: -50px;
    right: -50px;
    transform: rotate(-15deg);
}

.bg-decoration::after {
    content: "⚗️";
    position: absolute;
    font-size: 250px;
    opacity: 0.03;
    top: 100px;
    left: -80px;
    transform: rotate(10deg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== HEADER ========== */
.header {
    background-color: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 56px;
    height: 56px;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.25);
    transition: transform 0.3s;
}

.logo-icon:hover {
    transform: scale(1.05);
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-text {
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: #2d3748;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 16px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3b82f6;
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: #3b82f6;
}

/* ========== HERO SECTION ========== */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease;
}

.hero-badge {
    display: inline-block;
    background: #e0f2fe;
    color: #0284c7;
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #1a2a32;
}

.highlight {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}

.hero-description {
    font-size: 20px;
    color: #4a5568;
    margin-bottom: 32px;
}

/* ========== ORGANIZERS SECTION ========== */
.organizers {
    padding: 80px 0;
    background-color: #ffffff;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    color: #1a2a32;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-radius: 3px;
}

.organizers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.organizer-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s;
    border: 1px solid #eef2f6;
}

.organizer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
}

.organizer-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #eef2f6;
}

.organizer-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.organizer-card:hover .organizer-photo img {
    transform: scale(1.08);
}

.organizer-name {
    font-size: 22px;
    font-weight: 700;
    padding: 20px 20px 12px 20px;
    color: #1a2a32;
}

.organizer-achievements {
    padding: 0 20px 24px 20px;
    list-style: none;
}

.organizer-achievements li {
    padding: 8px 0;
    color: #4a5568;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.organizer-achievements li:last-child {
    border-bottom: none;
}

/* ========== OLIMPIADA KNOBKA ========== */
.olympiada-button-section {
    padding: 40px 0 20px 0;
    text-align: center;
}

.olympiada-button-wrapper {
    display: flex;
    justify-content: center;
}

.olympiada-main-btn {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    border: none;
    padding: 16px 48px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 60px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
    font-family: 'Inter', sans-serif;
}

.olympiada-main-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.5);
}

/* ========== OLIMPIADA MAZMUNI ========== */
.olympiada-content-hidden {
    display: none;
}

.olympiada-content-visible {
    display: block;
    animation: fadeInUp 0.5s ease;
}

/* Matn */
.olympiada-text {
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 24px;
    padding: 32px;
    text-align: center;
    margin-bottom: 48px;
    border: 1px solid #e2e8f0;
}

.olympiada-text p {
    font-size: 18px;
    color: #1e293b;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Gallery */
.gallery-section {
    margin-bottom: 48px;
}

.gallery-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 32px;
    color: #1a2a32;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* PDF Button */
.results-pdf-wrapper {
    text-align: center;
    margin: 40px 0 20px;
}

.pdf-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    padding: 14px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.pdf-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.modal-close:hover {
    color: #3b82f6;
}

/* ========== SOCIAL BUTTONS ========== */
.social-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.telegram-button {
    display: inline-block;
    background-color: white;
    color: #2563eb;
    padding: 14px 32px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.instagram-button {
    display: inline-block;
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    color: white;
    padding: 14px 32px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.telegram-button:hover,
.instagram-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ========== TELEGRAM SECTION ========== */
.telegram-section {
    padding: 60px 0 80px 0;
}

.telegram-card {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border-radius: 32px;
    padding: 48px;
    text-align: center;
    color: white;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
}

.telegram-card.small {
    padding: 32px;
}

.telegram-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.telegram-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.telegram-description {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.95;
}

.telegram-note {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.9;
}

/* ========== LIBRARY PAGE ========== */
.library-hero {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    text-align: center;
}

.library-title {
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 16px;
    color: #1a2a32;
}

.library-subtitle {
    font-size: 18px;
    color: #4a5568;
}

.materials-section {
    padding: 60px 0;
}

.materials-section.alt-bg {
    background: #f8fafc;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title-small {
    font-size: 32px;
    font-weight: 700;
    color: #1a2a32;
    margin-bottom: 8px;
}

.section-subtitle-small {
    font-size: 16px;
    color: #4a5568;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.material-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef2f6;
    transition: all 0.3s;
}

.material-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.12);
    border-color: #cbd5e1;
}

.material-type {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.material-type.book {
    background-color: #e6f7f9;
    color: #0891b2;
}

.material-type.tasks {
    background-color: #fef3e8;
    color: #d97706;
}

.material-type.inter {
    background-color: #e0f2fe;
    color: #0284c7;
}

.material-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a2a32;
}

.material-description {
    color: #4a5568;
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.material-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    background-color: #f1f5f9;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: #2d3748;
}

.material-button {
    display: inline-block;
    background-color: #3b82f6;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: background-color 0.3s;
    width: 100%;
    text-align: center;
}

.material-button:hover {
    background-color: #2563eb;
}

.library-telegram {
    background: #f8fafc;
    padding: 40px 0 60px 0;
}

/* ========== FOOTER ========== */
.footer {
    background-color: #1a2a32;
    color: #94a3b8;
    padding: 48px 0 24px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-logo .logo-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto;
}

.footer-logo span {
    font-size: 22px;
    font-weight: 700;
    color: white;
}

.footer-tagline {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 4px;
}

.footer-links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #3b82f6;
}

.footer-copyright {
    font-size: 12px;
    color: #64748b;
    padding-top: 16px;
    border-top: 1px solid #334155;
    width: 100%;
    text-align: center;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ========== ADAPTIVE ========== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-description {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .organizers-grid {
        grid-template-columns: 1fr;
    }
    
    .materials-grid {
        grid-template-columns: 1fr;
    }
    
    .telegram-card {
        padding: 32px 20px;
    }
    
    .telegram-title {
        font-size: 24px;
    }
    
    .library-title {
        font-size: 32px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 12px;
    }
    
    .nav {
        gap: 24px;
    }
    
    .social-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .olympiada-main-btn {
        padding: 12px 32px;
        font-size: 18px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .olympiada-text p {
        font-size: 16px;
    }
    
    .gallery-title {
        font-size: 24px;
    }
    
    .pdf-button {
        padding: 12px 28px;
        font-size: 16px;
    }
    
    .section-title-small {
        font-size: 24px;
    }
    /* Coming Soon Cards */
.coming-soon {
    opacity: 0.8;
    background: #f8fafc;
}

.coming-soon .material-button.disabled {
    background-color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

.coming-soon .material-button.disabled:hover {
    background-color: #94a3b8;
    transform: none;
}
