:root {
    --primary: #003366;
    --secondary: #00D4FF;
    --accent: #FF6B6B;
    --success: #00E676;
    --warning: #FFD166;
    --purple: #9D4EDD;
    --dark: #1A1A2E;
    --light: #FFFFFF;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --neon-glow: 0 0 10px var(--secondary), 0 0 20px var(--secondary), 0 0 30px var(--secondary);
    --accent-glow: 0 0 10px var(--accent), 0 0 20px var(--accent);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ОСНОВНОЙ ФОН САЙТА */
body {
    font-family: 'Montserrat', sans-serif;
    background: #171f3b; /* ← ВСТАВЬТЕ ЗДЕСЬ */
    color: var(--light);
    overflow-x: hidden;
}

/* ФОН ШАПКИ */
.cosmic-header {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: #171f3b; /* ← ВСТАВЬТЕ ЗДЕСЬ */
}

/* ФОН ВСЕХ СЕКЦИЙ */
.quantum-section {
    display: none;
    min-height: 100vh;
    padding: 5rem 2rem;
    position: relative;
    background: #171f3b; /* ← ВСТАВЬТЕ ЗДЕСЬ */
}

/* ФОН ПОДВАЛА */
.cyber-footer {
    background: #1b264c; /* ← ВСТАВЬТЕ ЗДЕСЬ */
    padding: 4rem 0 2rem;
    text-align: center;
    margin-top: 4rem;
    border-top: 1px solid var(--secondary);
    position: relative;
}
/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    display: flex;
    gap: 10px;
    background: rgba(26, 26, 57, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 8px;
    border: 1px solid var(--secondary);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--light);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.lang-btn.active {
    background: var(--secondary);
    color: var(--dark);
    box-shadow: var(--neon-glow);
}

/* Particle Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Cosmic Header */
.cosmic-header {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 5s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.logo-orb {
    width: 180px;
    height: 180px;
    background: var(--gradient);
    border-radius: 50%;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
    box-shadow: var(--neon-glow), 0 0 50px rgba(102, 126, 234, 0.5);
    border: 3px solid var(--light);
    position: relative;
    overflow: hidden;
}

.logo-orb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.logo-orb::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--secondary), var(--accent), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from { text-shadow: 0 0 20px var(--secondary), 0 0 30px var(--secondary); }
    to { text-shadow: 0 0 30px var(--accent), 0 0 40px var(--purple); }
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    animation: fadeIn 2s ease-in;
}

.university-name {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    font-weight: 600;
    color: var(--secondary);
    text-shadow: 0 0 10px var(--secondary);
}

.cta-buttons {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Holographic Navigation - Readable Single Line */
.hologram-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(27, 27, 45, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    overflow-x: auto;
    white-space: nowrap;
}

.nav-tabs {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 1rem;
    flex-wrap: nowrap;
    min-width: min-content;
    gap: 0.5rem; /* Равномерные отступы */
}

.nav-tab {
    padding: 1rem 1.5rem; /* Вернул нормальные отступы */
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    color: var(--light);
    font-weight: 600;
    font-size: 1rem; /* Нормальный размер шрифта */
    white-space: nowrap;
    flex-shrink: 0;
    min-width: max-content; /* Минимальная ширина по содержимому */
}

.nav-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.nav-tab:hover::before {
    left: 100%;
}

.nav-tab.active {
    background: rgba(0, 212, 255, 0.2);
    border: 1px solid var(--secondary);
    box-shadow: var(--neon-glow);
    transform: translateY(-2px);
}

.nav-tab i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* Скрыть scrollbar для красоты */
.hologram-nav::-webkit-scrollbar {
    display: none;
}

.hologram-nav {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .nav-tab {
        padding: 0.9rem 1.2rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .nav-tabs {
        padding: 0.8rem;
        gap: 0.3rem;
    }
    
    .nav-tab {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .nav-tab i {
        font-size: 1rem;
        margin-right: 0.4rem;
    }
}

@media (max-width: 480px) {
    .nav-tabs {
        justify-content: flex-start; /* Выравнивание по левому краю */
        padding: 0.6rem;
    }
    
    .nav-tab {
        padding: 0.7rem 0.9rem;
        font-size: 0.85rem;
    }
    
    .nav-tab i {
        font-size: 0.9rem;
        margin-right: 0.3rem;
    }
}

/* Только для очень узких экранов - сокращаем текст */
@media (max-width: 360px) {
    .nav-tab[data-tab="about"] span { content: "О нас"; }
    .nav-tab[data-tab="cnio"] span { content: "ЦНиИО"; }
    .nav-tab[data-tab="games"] span { content: "Игры"; }
    .nav-tab[data-tab="achievements"] span { content: "Материалы"; }
    .nav-tab[data-tab="faq"] span { content: "FAQ"; }
    .nav-tab[data-tab="contacts"] span { content: "Контакты"; }
    
    .nav-tab {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Quantum Sections */
.quantum-section {
    display: none;
    min-height: 100vh;
    padding: 5rem 2rem;
    position: relative;
}

.quantum-section.active {
    display: block;
    animation: quantumEntrance 0.8s ease-out;
}

@keyframes quantumEntrance {
    from { 
        opacity: 0;
        transform: scale(0.9) rotateX(10deg);
    }
    to { 
        opacity: 1;
        transform: scale(1) rotateX(0deg);
    }
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    position: relative;
    background: linear-gradient(45deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
    box-shadow: var(--neon-glow);
}

/* Age Filter */
.age-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 2rem 0 3rem;
}

.age-btn {
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--secondary);
    border-radius: 25px;
    color: var(--light);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.age-btn.active, .age-btn:hover {
    background: var(--secondary);
    color: var(--dark);
    box-shadow: var(--neon-glow);
    transform: translateY(-3px);
}

/* Matrix Grid */
.matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.data-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.data-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
}

.data-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), var(--neon-glow);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Game Hub */
.game-hub {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.game-pod {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
}

.game-pod::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient);
    z-index: -1;
    border-radius: 22px;
    opacity: 0;
    transition: opacity 0.4s;
}

.game-pod:hover::before {
    opacity: 1;
}

.game-pod:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), var(--neon-glow);
}

.game-avatar {
    width: 100px;
    height: 100px;
    background: var(--gradient);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    animation: pulse 2s infinite;
    border: 3px solid var(--light);
    box-shadow: var(--neon-glow);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.game-age {
    display: inline-block;
    background: var(--accent);
    color: var(--dark);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: var(--accent-glow);
}

/* Interactive FAQ */
.faq-matrix {
    max-width: 900px;
    margin: 0 auto;
}

.faq-node {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-left: 4px solid var(--secondary);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.faq-node:hover {
    border-left-color: var(--accent);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.2);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.faq-node.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}

.faq-node.active .faq-question i {
    transform: rotate(180deg);
}

/* Contact Hologram */
.contact-hologram {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    align-items: start;
}

.hologram-display {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.hologram-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 212, 255, 0.1) 50%, transparent 70%);
    animation: hologramScan 3s linear infinite;
}

@keyframes hologramScan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.contact-beam {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.contact-beam:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: translateX(10px);
    border-color: var(--secondary);
}

.beam-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    font-size: 1.5rem;
    box-shadow: var(--neon-glow);
}

/* Achievement System */
.achievement-wall {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.achievement-badge {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
}

.achievement-badge.unlocked {
    border-color: var(--success);
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.3);
}

.achievement-badge.locked {
    opacity: 0.6;
    filter: grayscale(1);
}

.achievement-badge:hover {
    transform: translateY(-5px);
}

.badge-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.unlocked .badge-icon {
    color: var(--success);
    text-shadow: 0 0 10px var(--success);
}

/* Resources Tabs */
.resources-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 10px;
}

.resource-tab {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--secondary);
    border-radius: 25px;
    color: var(--light);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.resource-tab.active, .resource-tab:hover {
    background: var(--secondary);
    color: var(--dark);
    box-shadow: var(--neon-glow);
    transform: translateY(-3px);
}

/* Cyber Footer - Site Color Version */
.cyber-footer {
    background: rgba(23, 31, 59, 0.95); /* Тот же цвет что и у сайта */
    padding: 2rem 0 1rem;
    margin-top: 3rem;
    position: relative;
    border-top: 1px solid var(--secondary);
    backdrop-filter: blur(15px);
}

.cyber-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient);
    animation: scanLine 3s linear infinite;
}

.cyber-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.05) 0%, 
        rgba(118, 75, 162, 0.03) 50%, 
        rgba(255, 107, 107, 0.05) 100%);
    pointer-events: none;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-section h4 {
    color: var(--secondary);
    margin-bottom: 0.8rem;
    font-size: 1rem;
    font-weight: 600;
    text-shadow: 0 0 8px var(--secondary);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.2rem 0;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--secondary);
    text-shadow: var(--neon-glow);
    transform: translateX(3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.footer-main {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    background: linear-gradient(45deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.footer-sub {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.8rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.footer-believe {
    color: rgba(255, 255, 255, 0.75);
    font-style: italic;
    margin-top: 0.8rem;
    font-size: 0.85rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .cyber-footer {
        padding: 1.5rem 0 0.8rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-main {
        font-size: 1rem;
    }
    
    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.8rem;
    }
}

@media (max-width: 480px) {
    .footer-content {
        padding: 0 1rem;
    }
    
    .footer-main {
        font-size: 0.95rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.3rem;
    }
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary);
    color: var(--dark);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
    box-shadow: var(--neon-glow);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: var(--accent);
}

/* Telegram Chat Widget Styles */
.telegram-chat-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 10000;
    font-family: 'Montserrat', sans-serif;
}

.telegram-chat-button {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0088cc, #00c6ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
    transition: all 0.3s ease;
    border: 3px solid white;
    color: white;
    font-size: 24px;
    animation: pulse 2s infinite;
}

.telegram-chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.6);
}

.telegram-chat-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 2px solid #0088cc;
}

.telegram-chat-window.active {
    display: flex;
    animation: slideInUp 0.3s ease-out;
}

.telegram-chat-header {
    background: linear-gradient(135deg, #0088cc, #00c6ff);
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.telegram-chat-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 18px;
}

.telegram-chat-info {
    flex: 1;
}

.telegram-chat-title {
    font-weight: 600;
    font-size: 16px;
}

.telegram-chat-status {
    font-size: 12px;
    opacity: 0.8;
}

.telegram-chat-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.telegram-chat-close:hover {
    background: rgba(255,255,255,0.2);
}

.telegram-chat-content {
    flex: 1;
    background: white;
}

.telegram-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0 0 13px 13px;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 15px;
    margin-top: 1.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-nav {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--secondary);
    box-shadow: 0 0 10px var(--secondary);
    transform: scale(1.2);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: rgba(0,0,0,0.8);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 15px;
}

.carousel-next {
    right: 15px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    h1 { font-size: 2.8rem; }
    .section-title { font-size: 2.2rem; }
    .nav-tabs { flex-direction: column; align-items: center; }
    .nav-tab { margin: 0.5rem 0; width: 90%; text-align: center; }
    .matrix-grid, .game-hub { grid-template-columns: 1fr; }
    .language-switcher { top: 10px; right: 10px; }
    .accessibility-panel { top: 70px; right: 10px; }
    .access-main-btn { width: 50px; height: 50px; font-size: 1.2rem; }
    .access-buttons-container { padding: 10px; top: 60px; }
    .access-btn, .access-reset-btn { width: 45px; height: 45px; font-size: 1rem; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .logo-orb { width: 140px; height: 140px; }
    .telegram-chat-widget { bottom: 90px; right: 15px; }
    .telegram-chat-button { width: 55px; height: 55px; font-size: 20px; }
    .telegram-chat-window { width: 320px; height: 450px; right: -10px; }
    .carousel-container { height: 250px; }
}

@media (max-width: 480px) {
    .telegram-chat-window { width: 300px; height: 400px; }
    .carousel-container { height: 200px; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Director Card Styles */
.director-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-top: 1rem;
}

.director-photo {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--secondary);
    box-shadow: var(--neon-glow);
    position: relative;
}

.director-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.director-photo:hover img {
    transform: scale(1.1);
}

.director-info {
    flex: 1;
}

.director-info h4 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.director-position {
    color: var(--light);
    opacity: 0.9;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.director-contacts {
    background: rgba(0, 212, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.director-contacts p {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.director-contacts i {
    color: var(--secondary);
    width: 16px;
}

/* Адаптивность для директора */
@media (max-width: 768px) {
    .director-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .director-photo {
        width: 100px;
        height: 100px;
    }
    
    .director-info h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .director-photo {
        width: 80px;
        height: 80px;
    }
    
    .director-contacts {
        padding: 0.8rem;
    }
    
    .director-contacts p {
        font-size: 0.85rem;
    }
}
/* Telegram Bot Widget */
.telegram-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0088cc, #00aced);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 136, 204, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.telegram-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 136, 204, 0.6);
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 12px;
    height: 12px;
    background: #ff4444;
    border-radius: 50%;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.telegram-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 320px;
    height: 400px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 2px solid #0088cc;
}

.telegram-widget.active {
    display: flex;
}

.telegram-header {
    background: linear-gradient(135deg, #0088cc, #00aced);
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.telegram-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.telegram-info {
    flex: 1;
}

.telegram-info h4 {
    margin: 0;
    font-size: 16px;
}

.telegram-status {
    font-size: 12px;
    opacity: 0.8;
}

.telegram-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
}

.telegram-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.telegram-message {
    text-align: center;
    color: #333;
}

.telegram-message p {
    margin: 5px 0;
}

.telegram-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 14px;
}

.feature i {
    color: #0088cc;
    width: 16px;
}

.telegram-launch-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #0088cc, #00aced);
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.telegram-launch-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.4);
}

.telegram-note {
    text-align: center;
    font-size: 12px;
    color: #888;
    margin-top: auto;
}

/* Адаптивность */
@media (max-width: 768px) {
    .telegram-widget {
        width: 300px;
        right: 20px;
        bottom: 90px;
    }
    
    .telegram-btn {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
}
/* PDF Cards */
.pdf-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.pdf-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.pdf-card:hover {
    transform: translateY(-5px);
}

.pdf-preview {
    position: relative;
    height: 120px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    overflow: hidden;
}

.pdf-icon {
    font-size: 3rem;
    color: white;
}

.pdf-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pdf-preview:hover .pdf-overlay {
    opacity: 1;
}

.preview-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
}

.pdf-info h4 {
    margin: 0 0 0.5rem 0;
    color: white;
}

.pdf-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.pdf-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.download-btn {
    background: var(--accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.download-btn:hover {
    background: var(--accent-dark);
}

.file-size {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background: white;
    margin: 2% auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    border-radius: 10px;
    overflow: hidden;
}

.modal-header {
    background: #333;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-body {
    padding: 0;
}
/* Полноэкранный контейнер для игры */
#game-fullscreen-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: white;
    z-index: 10000;
    display: flex;
    flex-direction: column;
}

/* Панель управления игрой */
.game-header-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-height: 60px;
    box-sizing: border-box;
}

.back-to-main-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.back-to-main-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

.game-title {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Полноэкранный фрейм для игры */
.game-fullscreen-frame {
    width: 100%;
    height: calc(100vh - 60px);
    border: none;
    background: white;
}

/* Адаптивность */
@media (max-width: 768px) {
    .game-header-bar {
        padding: 0.8rem 1rem;
    }
    
    .back-to-main-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .game-title {
        font-size: 1rem;
    }
}
/* Стеклянные неоморфные кнопки */
.game-launch-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1.2rem 2rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.4s ease;
    margin-top: 1.5rem;
    width: 100%;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.game-launch-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.game-launch-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.game-launch-btn:hover::before {
    left: 100%;
}

.game-launch-btn i {
    margin-right: 10px;
    background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
}

.game-launch-btn:hover i {
    transform: rotate(15deg) scale(1.2);
}
/* Индикатор прокрутки */
.scroll-indicator {
    position: fixed;
    left: 30px;
    bottom: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 1;
    transition: all 0.5s ease;
}

.scroll-indicator.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.scroll-text {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    margin-bottom: 10px;
}

.scroll-arrow {
    width: 40px;
    height: 40px;
    background: rgba(112, 110, 110, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-arrow:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}
/* Модальное окно доступности */
.accessibility-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.accessibility-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.accessibility-modal .modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 1.5rem;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-body {
    padding: 1.5rem;
}

/* Группы настроек */
.setting-group {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.setting-group:last-child {
    border-bottom: none;
}

.setting-group h4 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Управление размером шрифта */
.font-size-controls {
    display: flex;
    gap: 10px;
}

.size-btn {
    flex: 1;
    background: #f5f5f5;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.size-btn:hover {
    transform: translateY(-2px);
}

.size-btn[data-size="small"] { font-size: 1rem; }
.size-btn[data-size="medium"] { font-size: 1.2rem; }
.size-btn[data-size="large"] { font-size: 1.5rem; }
.size-btn[data-size="xlarge"] { font-size: 1.8rem; }

/* Цветовые схемы */
.color-schemes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.color-btn {
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.color-btn:hover {
    transform: translateY(-2px);
    border-color: #667eea;
}

.color-preview {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #ddd;
}

.color-preview.white { background: #ffffff; border-color: #ccc; }
.color-preview.black { background: #000000; }
.color-preview.blue { background: #1e90ff; }
.color-preview.yellow { background: #ffd700; }
.color-preview.brown { background: #8b4513; }

.color-btn span {
    font-size: 0.8rem;
    color: #666;
}

/* Кнопка синтеза речи */
.speech-btn {
    width: 100%;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.speech-btn:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* Дополнительные настройки */
.additional-settings {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 1rem;
    color: #333;
}

.toggle-label input {
    display: none;
}

.toggle-slider {
    width: 50px;
    height: 25px;
    background: #ddd;
    border-radius: 25px;
    position: relative;
    transition: all 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 21px;
    height: 21px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
}

.toggle-label input:checked + .toggle-slider {
    background: #667eea;
}

.toggle-label input:checked + .toggle-slider::before {
    transform: translateX(25px);
}

/* Кнопка сброса */
.reset-section {
    text-align: center;
    margin-top: 1rem;
}

.reset-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .accessibility-modal .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .color-schemes {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .font-size-controls {
        flex-wrap: wrap;
    }
    
    .size-btn {
        flex: 0 0 calc(50% - 5px);
    }
}
/* Простая панель доступности */
.accessibility-panel {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 1000;
}

.access-btn {
    width: 50px;
    height: 50px;
    background: #667eea;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.access-btn:hover {
    background: #764ba2;
    transform: scale(1.1);
}

.access-menu {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 250px;
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    display: none;
}

.accessibility-panel.active .access-menu {
    display: block;
}

.menu-item {
    margin-bottom: 15px;
}

.menu-item:last-child {
    margin-bottom: 0;
}

.menu-item label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.action-btn {
    width: 100%;
    padding: 10px;
    margin-bottom: 8px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.action-btn:hover {
    background: #218838;
}

.action-btn.reset {
    background: #6c757d;
}

.action-btn.reset:hover {
    background: #5a6268;
}

input[type="checkbox"] {
    margin-right: 8px;
}
.materials-subtitle {
    text-align: center;
    font-size: 2rem;
    margin: 4rem 0 2rem 0;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
    position: relative;
}

.materials-subtitle::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}
/* University Logo - Fixed Position */
.university-logo {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 6px;
    border: 1px solid var(--secondary);
    transition: all 0.3s ease;
}

.university-logo:hover {
    transform: scale(1.05);
    box-shadow: var(--neon-glow);
}

.university-logo img {
    width: 50px;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* Гарантируем, что лого всегда сверху и не двигается */
.university-logo {
    position: fixed !important;
    top: 15px !important;
    left: 15px !important;
    transform: none !important;
}

/* Убираем любые возможные анимации для лого */
.university-logo {
    animation: none !important;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .university-logo {
        top: 10px !important;
        left: 10px !important;
        padding: 4px;
    }
    
    .university-logo img {
        width: 40px;
    }
}

@media (max-width: 480px) {
    .university-logo {
        top: 8px !important;
        left: 8px !important;
        padding: 3px;
    }
    
    .university-logo img {
        width: 35px;
    }
}

/* Очень маленькие экраны - лого остается на месте */
@media (max-width: 360px) {
    .university-logo {
        top: 5px !important;
        left: 5px !important;
        padding: 2px;
    }
    
    .university-logo img {
        width: 30px;
    }
}/* ФИКС ПЕРЕКРЫТИЯ ЯЗЫКОВОГО ПЕРЕКЛЮЧАТЕЛЯ И НАВИГАЦИИ */
.language-switcher {
    position: fixed;
    top: 20px; /* Поднимаем выше */
    right: 20px;
    z-index: 1001;
    display: flex;
    gap: 5px;
    background: rgba(26, 26, 57, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 6px;
    border: 1px solid var(--secondary);
    flex-wrap: nowrap;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--light);
    padding: 6px 12px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.8rem;
    white-space: nowrap;
    min-width: auto;
}

/* Панель специальных возможностей ПОД языковым переключателем */
.accessibility-panel {
    position: fixed;
    top: 70px; /* Под переключателем языков */
    right: 20px; /* Такое же правое положение */
    z-index: 1001;
}

.access-btn {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border: none;
    border-radius: 50%;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--neon-glow);
    transition: all 0.3s ease;
    z-index: 1002;
}


.hologram-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(27, 27, 45, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
    padding: 0.5rem 0;
}

.nav-tabs {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0.5rem;
    flex-wrap: nowrap;
    min-width: min-content;
    gap: 0.3rem;
}

.nav-tab {
    padding: 0.7rem 1rem;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    color: var(--light);
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: max-content;
}

/* Адаптивность */
@media (max-width: 480px) {
    .language-switcher {
        top: 15px;
        right: 10px;
        padding: 4px;
    }
    
    .accessibility-panel {
        top: 65px; /* Под переключателем на мобильных */
        right: 10px;
    }
    
    .access-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .lang-btn {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
    
    .nav-tabs {
        padding: 0.3rem;
        gap: 0.2rem;
    }
    
    .nav-tab {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .nav-tab i {
        font-size: 0.8rem;
        margin-right: 0.3rem;
    }
}

@media (max-width: 360px) {
    .language-switcher {
        flex-direction: column;
        gap: 2px;
    }
    
    .lang-btn {
        padding: 3px 6px;
        font-size: 0.65rem;
    }
    
    .nav-tab span {
        display: none;
    }
    
    .nav-tab i {
        margin-right: 0;
    }
}
/* Стили для описания раздела */
.section-description {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    text-align: center;
    padding: 0 2rem;
}

.section-description p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .section-description {
        margin: 0 auto 2rem auto;
        padding: 0 1rem;
    }
    
    .section-description p {
        font-size: 1.1rem;
    }
}