/* CSS Variables - Дополнительная цветовая схема */
:root {
    /* Основные цвета */
    --primary-color: #FF6B35;
    --secondary-color: #4ECDC4;
    --accent-color: #45B7D1;
    --success-color: #96CEB4;
    --warning-color: #FFEAA7;
    --danger-color: #FF7675;
    
    /* Нейтральные цвета */
    --dark-color: #2D3436;
    --light-color: #F8F9FA;
    --white-color: #FFFFFF;
    --gray-color: #6C757D;
    --light-gray: #E9ECEF;
    
    /* Градиенты */
    --primary-gradient: linear-gradient(135deg, #FF6B35 0%, #FF8E53 100%);
    --secondary-gradient: linear-gradient(135deg, #4ECDC4 0%, #6DD5ED 100%);
    --accent-gradient: linear-gradient(135deg, #45B7D1 0%, #667EEA 100%);
    --dark-gradient: linear-gradient(135deg, #2D3436 0%, #636E72 100%);
    
    /* Тени */
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.2);
    --shadow-retro: 4px 4px 0px rgba(0, 0, 0, 0.3);
    
    /* Шрифты */
    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Lato', sans-serif;
    
    /* Размеры */
    --border-radius: 8px;
    --border-radius-large: 16px;
    --transition: all 0.3s ease;
    --max-width: 1200px;
}

/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Заголовки */
.title {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.subtitle {
    font-family: var(--font-body);
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--gray-color);
}

/* Кнопки - глобальные стили */
.btn, .button {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-retro);
    margin: 5px;
}

.btn:hover, .button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.btn:active, .button:active {
    transform: translateY(0);
    box-shadow: var(--shadow-light);
}

.button.is-primary {
    background: var(--primary-gradient);
    color: var(--white-color);
}

.button.is-secondary {
    background: var(--secondary-gradient);
    color: var(--white-color);
}

.button.is-light {
    background: var(--white-color);
    color: var(--dark-color);
    border: 2px solid var(--primary-color);
}

.button.is-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Анимации */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.animate-bounce {
    animation: bounce 2s infinite;
}

.animate-shake {
    animation: shake 0.5s ease-in-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white-color);
    box-shadow: var(--shadow-medium);
    z-index: 1000;
    padding: 1rem 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.navbar-brand .title {
    color: var(--primary-color);
    margin-bottom: 0;
}

.navbar-menu {
    display: flex;
    align-items: center;
}

.navbar-item {
    color: var(--dark-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: var(--transition);
    position: relative;
}

.navbar-item:hover {
    color: var(--primary-color);
}

.navbar-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-item:hover::after {
    width: 80%;
}

.navbar-burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.navbar-burger span {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
    color: var(--white-color);
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
    z-index: 1;
}

.hero-body {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 2rem 0;
}

.hero .title {
    color: var(--white-color);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero .subtitle {
    color: var(--white-color);
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Секции */
.section {
    padding: 4rem 0;
}

.section.has-background-light {
    background-color: var(--light-color);
}

/* Карточки */
.card {
    background: var(--white-color);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    overflow: hidden;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.card-image {
    text-align: center;
    overflow: hidden;
    height: 200px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.card-content {
    padding: 1.5rem;
    text-align: center;
}

/* Прогресс-индикаторы */
.progress-indicator {
    width: 100px;
    height: 4px;
    background: var(--light-gray);
    border-radius: 2px;
    margin: 0 auto 2rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 2px;
    transition: width 0.6s ease;
}

/* Таймлайны */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-gradient);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin: 2rem 0;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-marker {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: var(--shadow-medium);
}

.timeline-content {
    width: 45%;
    padding: 1.5rem;
    background: var(--white-color);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
}

/* Аккордеоны */
.accordion {
    border-radius: var(--border-radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.accordion-item {
    border-bottom: 1px solid var(--light-gray);
}

.accordion-header {
    padding: 1.5rem;
    background: var(--white-color);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header:hover {
    background: var(--light-color);
}

.accordion-content {
    padding: 0 1.5rem;
    background: var(--white-color);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 200px;
    padding: 1.5rem;
}

/* Кастомные слайдеры */
.custom-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    padding: 2rem;
    background: var(--white-color);
}

.slide:not(.active) {
    display: none;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.slider-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--primary-gradient);
    color: var(--white-color);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
}

.slider-btn:hover {
    transform: scale(1.1);
}

.event-card {
    background: var(--light-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
}

/* Формы */
.field {
    margin-bottom: 1.5rem;
}

.label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.input, .textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    transition: var(--transition);
    background: var(--white-color);
}

.input:focus, .textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.modal.is-active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-card {
    background: var(--white-color);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-heavy);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-card-head {
    background: var(--primary-gradient);
    color: var(--white-color);
    padding: 1.5rem;
    border-radius: var(--border-radius-large) var(--border-radius-large) 0 0;
}

.modal-card-body {
    padding: 2rem;
}

.modal-card-title {
    font-size: 1.5rem;
    margin: 0;
}

.delete {
    background: none;
    border: none;
    color: var(--white-color);
    font-size: 1.5rem;
    cursor: pointer;
    float: right;
}

/* Footer */
.footer {
    background: var(--dark-gradient);
    color: var(--white-color);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer .title {
    color: var(--white-color);
    margin-bottom: 1rem;
}

.footer p {
    margin-bottom: 1rem;
}

.footer ul {
    list-style: none;
}

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

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

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

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

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

/* Дополнительные страницы */
.page-content {
    padding-top: 100px;
    min-height: 100vh;
}

.success-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    background: var(--light-color);
}

.success-content {
    background: var(--white-color);
    padding: 3rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-heavy);
    max-width: 500px;
    width: 90%;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row;
        padding-left: 60px;
    }
    
    .timeline-item:nth-child(odd) {
        flex-direction: row;
    }
    
    .timeline-marker {
        left: 30px;
    }
    
    .timeline-content {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white-color);
        flex-direction: column;
        box-shadow: var(--shadow-medium);
        padding: 1rem 0;
    }
    
    .navbar-menu.is-active {
        display: flex;
    }
    
    .navbar-burger {
        display: flex;
    }
    
    .navbar-burger.is-active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .navbar-burger.is-active span:nth-child(2) {
        opacity: 0;
    }
    
    .navbar-burger.is-active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero .title {
        font-size: 2.5rem;
    }
    
    .hero .subtitle {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .columns {
        flex-direction: column;
    }
    
    .column {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .timeline-item {
        padding-left: 40px;
    }
    
    .timeline-marker {
        left: 20px;
    }
    
    .timeline::before {
        left: 20px;
    }
}

/* Bulma override для совместимости */
.columns {
    display: flex;
    flex-wrap: wrap;
    margin: -0.75rem;
}

.column {
    flex: 1;
    padding: 0.75rem;
}

.column.is-one-third {
    flex: 0 0 33.333333%;
}

.column.is-two-thirds {
    flex: 0 0 66.666667%;
}

.column.is-half {
    flex: 0 0 50%;
}

.is-vcentered {
    align-items: center;
}

.is-multiline {
    flex-wrap: wrap;
}

.has-text-centered {
    text-align: center;
}

.has-text-white {
    color: var(--white-color) !important;
}

.has-text-dark {
    color: var(--dark-color) !important;
}

.mb-6 {
    margin-bottom: 3rem;
}

.buttons {
    display: flex;
    gap: 1rem;
}

.buttons.is-centered {
    justify-content: center;
}

/* Микроинтеракции */
.card, .button, .navbar-item {
    transition: var(--transition);
}

.card:hover {
    animation: pulse 0.6s ease-in-out;
}

.button:hover {
    animation: bounce 0.6s ease-in-out;
}

/* Дополнительные утилиты */
.content {
    line-height: 1.6;
}

.content p {
    margin-bottom: 1rem;
}

.media {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.media-left {
    margin-right: 1rem;
}

.media-content {
    flex: 1;
}

.heading {
    color: var(--gray-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}