/* CSS Variables */
:root {
    /* Яркая цветовая палитра */
    --primary-color: #FF6B35;
    --secondary-color: #00D4FF;
    --accent-color: #FFD23F;
    --success-color: #4CAF50;
    --warning-color: #FF9800;
    --danger-color: #F44336;
    
    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, #FF6B35 0%, #FF8E53 100%);
    --gradient-secondary: linear-gradient(135deg, #00D4FF 0%, #0099CC 100%);
    --gradient-accent: linear-gradient(135deg, #FFD23F 0%, #FFA000 100%);
    --gradient-hero: linear-gradient(135deg, rgba(255,107,53,0.8) 0%, rgba(0,212,255,0.8) 100%);
    --gradient-dark: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 100%);
    
    /* Цвета текста */
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
    --text-white: #FFFFFF;
    
    /* Фоновые цвета */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --bg-dark: #2C3E50;
    --bg-light: #FAFAFA;
    
    /* Тени */
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-md: 0 5px 25px rgba(0,0,0,0.15);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.2);
    
    /* Радиусы */
    --border-radius: 15px;
    --border-radius-sm: 10px;
    --border-radius-lg: 25px;
    
    /* Шрифты */
    --font-heading: 'Raleway', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    /* Переходы */
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

/* Глобальные стили */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Кнопки */
.btn {
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: var(--text-white);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: var(--text-white);
}

.btn-outline-light {
    border: 2px solid var(--text-white);
    color: var(--text-white);
    background: transparent;
}

.btn-outline-light:hover {
    background: var(--text-white);
    color: var(--primary-color);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* Секции */
.section-title {
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-description {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Header */
.header-section {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color) !important;
    text-decoration: none;
}

.navbar-nav .nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary) !important;
    margin: 0 10px;
    position: relative;
    transition: var(--transition);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--text-white) !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-white) !important;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: var(--text-white) !important;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Portfolio Section */
.portfolio-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.portfolio-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.card-content h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
}

.card-content p {
    color: var(--text-secondary);
    flex: 1;
    margin-bottom: 20px;
}

.portfolio-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.stat-item {
    background: var(--gradient-accent);
    color: var(--text-white);
    padding: 8px 15px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Insights Section */
.insights-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.insight-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* Research Section */
.research-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.stats-widget {
    background: var(--bg-primary);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stats-widget:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Process Section */
.process-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.process-step {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-step h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
}

.process-step p {
    color: var(--text-secondary);
}

/* Press Section */
.press-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.press-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.press-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.press-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 15px;
}

/* Resources Section */
.resources-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.resource-card {
    background: var(--bg-primary);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.resource-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.resource-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.resource-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Workshops Section */
.workshops-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.workshop-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.workshop-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.workshop-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.workshop-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.workshop-price {
    background: var(--gradient-accent);
    color: var(--text-white);
    padding: 5px 15px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Awards Section */
.awards-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.award-card {
    background: var(--bg-primary);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.award-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.award-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.award-card h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
}

.award-card p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Events Section */
.events-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.event-card {
    background: var(--bg-primary);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 20px;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.event-date {
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    min-width: 80px;
}

.event-date .day {
    font-size: 1.5rem;
    font-weight: 900;
    display: block;
}

.event-date .month {
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
}

.event-content {
    flex: 1;
}

.event-content h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.event-content p {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.event-details {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: var(--gradient-hero);
    position: relative;
}

.contact-form {
    background: rgba(255,255,255,0.95);
    padding: 50px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 25px;
}

.form-control {
    background: var(--bg-primary);
    border: 2px solid transparent;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    width: 100%;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255,107,53,0.25);
    outline: none;
}

/* Footer */
.footer-section {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 60px 0 20px;
}

.footer-brand h3 {
    color: var(--text-white);
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-light);
}

.footer-links h4 {
    color: var(--text-white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

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

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-contact h4 {
    color: var(--text-white);
    margin-bottom: 20px;
}

.footer-contact p {
    color: var(--text-light);
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: var(--text-light);
    margin: 0;
}

/* Parallax Effect */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes morphing {
    0% {
        border-radius: var(--border-radius);
    }
    50% {
        border-radius: 50px;
    }
    100% {
        border-radius: var(--border-radius);
    }
}

.morph-animation {
    animation: morphing 4s ease-in-out infinite;
}

/* Страница успеха */
.success-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    padding: 20px;
}

.success-content {
    background: var(--bg-primary);
    padding: 60px 40px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 100%;
}

.success-icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 30px;
}

/* Страницы политики */
.policy-page {
    padding-top: 100px;
    padding-bottom: 60px;
}

.policy-content {
    background: var(--bg-primary);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.policy-content h2 {
    color: var(--text-primary);
    margin-bottom: 30px;
}

.policy-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.policy-content ul {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.policy-content li {
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .event-card {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .contact-form {
        padding: 20px;
    }
}

/* Дополнительные утилиты */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* Читать далее ссылки */
.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: var(--transition);
}

.read-more::after {
    content: ' →';
    transition: var(--transition);
}

.read-more:hover {
    color: var(--secondary-color);
}

.read-more:hover::after {
    transform: translateX(5px);
}

/* Искривленные сетки */
.curved-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    transform: perspective(1000px) rotateX(2deg);
}

.curved-grid > * {
    transform: rotateX(-2deg);
}

/* Дополнительные стили для адаптивности */
@media (max-width: 992px) {
    .curved-grid {
        transform: none;
    }
    
    .curved-grid > * {
        transform: none;
    }
}