/* Основные стили с футуристичным дизайном */

:root {
    --primary-color: #00d4ff;
    --secondary-color: #9d4edd;
    --accent-color: #ff006e;
    --dark-bg: #0a0a1a;
    --darker-bg: #050510;
    --card-bg: rgba(16, 20, 40, 0.8);
    --text-light: #f0f8ff;
    --text-gray: #a0aec0;
    --neon-shadow: 0 0 10px var(--primary-color),
                   0 0 20px var(--primary-color),
                   0 0 30px var(--primary-color);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* Секция с логотипами партнеров */
.partners-bar {
    background: rgba(5, 5, 16, 0.95);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    padding: 0.75rem 0;
    position: relative;
    z-index: 1001;
}

.partners-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.partner-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-light);
    transition: var(--transition);
    padding: 0.5rem;
    border-radius: 8px;
    flex: 1;
    min-width: 200px;
    justify-content: center;
}

.partner-logo:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-2px);
}

.partner-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Делаем логотипы белыми */
    transition: var(--transition);
}

.partner-logo:hover img {
    filter: brightness(0) invert(1) drop-shadow(0 0 8px var(--primary-color));
}

.partner-logo span {
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
}

.partner-logo.project-logo {
    min-width: 250px;
    justify-content: flex-start;
}

.partner-logo.project-logo img {
    height: 50px;
}

.partner-logo.project-logo .logo-text {
    font-size: 1.2rem;
    font-weight: 700;
}

/* Адаптивность для партнеров */
@media (max-width: 1200px) {
    .partners-logos {
        justify-content: center;
    }
    
    .partner-logo {
        flex: 0 1 calc(50% - 1rem);
        min-width: 180px;
    }
}

@media (max-width: 768px) {
    .partners-bar {
        padding: 0.5rem 0;
    }
    
    .partners-logos {
        gap: 0.5rem;
    }
    
    .partner-logo {
        flex: 0 1 calc(50% - 0.5rem);
        min-width: 140px;
        padding: 0.25rem;
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }
    
    .partner-logo img {
        height: 30px;
    }
    
    .partner-logo span {
        font-size: 0.7rem;
    }
    
    .partner-logo.project-logo {
        flex-basis: 100%;
        order: -1;
        margin-bottom: 0.5rem;
        flex-direction: row;
        justify-content: center;
    }
    
    .partner-logo.project-logo .logo-text {
        font-size: 1rem;
    }
}

body {
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Анимированный фон с молекулами */
.molecules-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.molecule {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.1;
    animation: float 20s infinite linear;
}

.molecule:nth-child(2) {
    background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
    animation-delay: -5s;
    width: 40px;
    height: 40px;
}

.molecule:nth-child(3) {
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    animation-delay: -10s;
    width: 80px;
    height: 80px;
}

.molecule:nth-child(4) {
    animation-delay: -15s;
    width: 30px;
    height: 30px;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(100px, 50px) rotate(90deg); }
    50% { transform: translate(50px, 100px) rotate(180deg); }
    75% { transform: translate(-50px, 50px) rotate(270deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

/* Навигация */
.futuristic-nav {
    background: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-icon {
    position: relative;
    width: 40px;
    height: 40px;
}

.logo-icon .fa-atom {
    font-size: 2rem;
    color: var(--primary-color);
    animation: spin 10s infinite linear;
}

.electron {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    top: 50%;
    left: 50%;
}

.electron:nth-child(2) {
    animation: orbit 3s infinite linear;
    transform-origin: 20px 20px;
}

.electron:nth-child(3) {
    animation: orbit 4s infinite linear reverse;
    transform-origin: 20px 20px;
    background: var(--secondary-color);
}

.electron:nth-child(4) {
    animation: orbit 5s infinite linear;
    transform-origin: 20px 20px;
    background: var(--primary-color);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes orbit {
    from { transform: rotate(0deg) translateX(20px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(20px) rotate(-360deg); }
}

.logo-text .highlight {
    color: var(--primary-color);
    text-shadow: var(--neon-shadow);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu a:hover {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-color);
}

.nav-menu a.active {
    background: rgba(0, 212, 255, 0.2);
    color: var(--primary-color);
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    min-width: 250px;
    border-radius: 8px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    padding: 0.5rem 0;
    z-index: 1000;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1.5rem;
}

/* Герой-секция */
.hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.element-symbol {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: var(--neon-shadow);
}

.glitch-text {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    animation: glitch 5s infinite;
    color: var(--accent-color);
    z-index: -1;
}

.glitch-text::after {
    animation: glitch 3s infinite reverse;
    color: var(--secondary-color);
    z-index: -2;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: var(--neon-shadow);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-top: 0.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
    height: 400px;
}

.reaction-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
}

.reaction-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 212, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    animation: pulse 2s infinite;
}

.particle {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: particle-float 3s infinite linear;
}

.particle:nth-child(1) {
    animation-delay: 0s;
    background: var(--primary-color);
}

.particle:nth-child(2) {
    animation-delay: -1s;
    background: var(--secondary-color);
}

.particle:nth-child(3) {
    animation-delay: -2s;
    background: var(--accent-color);
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes particle-float {
    0% {
        transform: rotate(0deg) translateX(100px) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translateX(100px) rotate(-360deg);
    }
}

/* Направления работы */
.directions {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.element-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.direction-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.direction-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.direction-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.1);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.direction-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-list {
    list-style: none;
    margin: 1.5rem 0;
}

.card-list li {
    padding: 0.5rem 0;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-list i {
    color: var(--primary-color);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
}

/* Мероприятия */
.events-preview {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

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

.event-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: var(--transition);
    display: flex;
}

.event-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.event-date {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

.date-day {
    font-size: 2rem;
    font-weight: bold;
}

.date-month {
    font-size: 1rem;
    text-transform: uppercase;
}

.date-year {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
}

.event-content {
    padding: 1.5rem;
    flex: 1;
}

.event-content h3 {
    margin-bottom: 0.5rem;
}

.event-desc {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.event-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.btn-register {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-register:hover {
    background: var(--secondary-color);
}

/* Футер */
.futuristic-footer {
    background: rgba(5, 5, 16, 0.95);
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--text-gray);
    margin: 1rem 0;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-gray);
}

.btn-footer-contact {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    text-decoration: none;
    margin-top: 1rem;
    transition: var(--transition);
}

.btn-footer-contact:hover {
    background: var(--primary-color);
    color: white;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .nav-menu {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .direction-cards {
        grid-template-columns: 1fr;
    }
}
/* Стили для карты */
.map-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 150, 255, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
}

.map-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 150, 255, 0.9);
}

/* Анимация для лаборатории */
@keyframes bubbleRise {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.05);
    }
}

@keyframes atomFloat {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-15px) rotate(10deg);
    }
}

.flask {
    position: relative;
    animation: bubbleRise 3s infinite;
}

.molecule-structure .atom {
    animation: atomFloat 2s infinite alternate;
}

.molecule-structure .atom:nth-child(2) {
    animation-delay: 0.3s;
}

.molecule-structure .atom:nth-child(3) {
    animation-delay: 0.6s;
}