/* ===== ОСНОВНЫЕ СТИЛИ ===== */
:root {
    --primary-color: #0cc638;
    --primary-dark: #03a631;
    --secondary-color: #232428;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #0cc638 0%, #03a631 100%);
    --gradient-dark: linear-gradient(135deg, #232428 0%, #1a1c1f 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== НАВИГАЦИЯ ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(35, 36, 40, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.navbar.scrolled {
    background: rgba(35, 36, 40, 0.9);
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo-img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

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

.nav-cta .btn {
    padding: 10px 25px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: var(--transition);
}

/* ===== КНОПКИ ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 14px;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(12, 198, 56, 0.4);
}

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

.btn-secondary:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(12, 198, 56, 0.4);
}

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

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

.btn-lg {
    padding: 16px 40px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* ===== HERO СЕКЦИЯ ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-dark);
    overflow: hidden;
    padding-top: 80px;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}

.hero-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    
    /* Делаем видео больше для покрытия всей области */
    width: 177.77777778vh; /* 16:9 aspect ratio */
    height: 56.25vw; /* 16:9 aspect ratio */
}

/* Fallback изображение если видео не загрузится */
.hero-video::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/photo.png') center/cover no-repeat;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    animation: fadeInUp 1s ease;
}

.hero-badge {
    display: inline-block;
    background: rgba(12, 198, 56, 0.2);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(12, 198, 56, 0.2);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 40px;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
}

.hero-main {
    font-family: 'Unbounded', sans-serif;
    font-size: 72px;
    font-weight: 700;
    color: var(--white);
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-year {
    font-family: 'Unbounded', sans-serif;
    font-size: 64px;
    font-weight: 700;
    color: var(--primary-color);
}

.hero-info {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-bottom: 40px;
}

.hero-date,
.hero-location {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 15px;
}

.hero-info .icon {
    font-size: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.hero-info strong {
    display: block;
    font-size: 18px;
    margin-bottom: 5px;
}

.hero-info p {
    font-size: 14px;
    opacity: 0.9;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--white);
    animation: bounce 2s infinite;
    z-index: 10;
}

.scroll-indicator span {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.scroll-arrow {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    background: rgba(12, 198, 56, 0.2);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: bounce 2s infinite;
    backdrop-filter: blur(5px);
    color: var(--white);
    font-family: Arial, sans-serif;
}

/* ===== ОПИСАНИЕ ФЕСТИВАЛЯ ===== */
.festival-description {
    background: var(--white);
    padding: 80px 0;
}

.description-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.description-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 36px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 20px;
}

.description-text {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== СТАТИСТИКА ===== */
.stats {
    background: var(--white);
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Unbounded', sans-serif;
    font-size: 64px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-light);
}

/* ===== СЕКЦИИ ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 48px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 20px;
    color: var(--text-light);
}

/* ===== О ФЕСТИВАЛЕ ===== */
.about {
    padding: 100px 0;
    background: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.about-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

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

.about-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.about-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== КАТЕГОРИИ ВЫСТАВКИ ===== */
.categories {
    padding: 100px 0;
    background: var(--white);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.category-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.category-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
    text-transform: uppercase;
}

.category-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== ПРОГРАММА ===== */
.program {
    padding: 100px 0;
    background: var(--white);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
    padding-left: 150px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 70px;
    top: 30px;
    width: 2px;
    height: calc(100% + 40px);
    background: var(--primary-color);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-time {
    position: absolute;
    left: 0;
    top: 0;
    font-family: 'Unbounded', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    background: var(--bg-light);
    padding: 10px 20px;
    border-radius: 10px;
}

.timeline-content {
    flex: 1;
    background: var(--bg-light);
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
}

.timeline-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.timeline-content p {
    color: var(--text-light);
}

/* ===== УЧАСТИЕ ===== */
.participate {
    padding: 100px 0;
    background: var(--bg-light);
}

.participate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.participate-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.participate-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
}

.participate-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.participate-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.participate-card ul {
    list-style: none;
    margin-bottom: 30px;
}

.participate-card li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-light);
}

.participate-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 18px;
}

/* ===== ГАЛЕРЕЯ ===== */
.gallery {
    padding: 100px 0;
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

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

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ===== СЛАЙДЕР ГАЛЕРЕИ ===== */
.gallery-slider {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery-slider.active {
    opacity: 1;
    visibility: visible;
}

.gallery-slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.gallery-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 80px;
    z-index: 1;
}

.gallery-slider-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: pan-y;
}

.gallery-slider-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gallery-slider-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--white);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2;
}

.gallery-slider-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
    transform: rotate(90deg);
}

.gallery-slider-prev,
.gallery-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--white);
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2;
    user-select: none;
}

.gallery-slider-prev {
    left: 20px;
}

.gallery-slider-next {
    right: 20px;
}

.gallery-slider-prev:hover,
.gallery-slider-next:hover {
    background: rgba(12, 198, 56, 0.3);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.gallery-slider-prev:active,
.gallery-slider-next:active {
    transform: translateY(-50%) scale(0.95);
}

.gallery-slider-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 25px;
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    z-index: 2;
}

.gallery-cta {
    text-align: center;
    padding: 40px;
    background: var(--bg-light);
    border-radius: 20px;
}

.gallery-cta p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* ===== ПАРТНЁРЫ ===== */
.partners {
    padding: 100px 0;
    background: var(--bg-light);
}

/* ===== УНИФИКАЦИЯ ИКОНОК ===== */
.benefit__icon img,
.participate-icon img {
    filter: brightness(0) saturate(100%) invert(46%) sepia(93%) saturate(1651%) hue-rotate(91deg) brightness(95%) contrast(101%);
}

/* ===== СТИЛИЗАЦИЯ EMOJI ПОД ЕДИНЫЙ СТИЛЬ ===== */

/* Общий стиль для всех emoji */
.about-icon,
.participate-icon,
.contact-icon,
.hero-info .icon,
.toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(12, 198, 56, 0.1) 0%, rgba(3, 166, 49, 0.15) 100%);
    border-radius: 50%;
    font-size: 28px;
    margin: 0 auto 20px;
    position: relative;
    border: 2px solid rgba(12, 198, 56, 0.2);
    transition: var(--transition);
}

/* Эффект свечения */
.about-icon::before,
.contact-icon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.about-card:hover .about-icon::before,
.contact-card:hover .contact-icon::before {
    opacity: 0.3;
    animation: pulse 2s infinite;
}

/* Большие иконки в карточках "О фестивале" */
.about-icon {
    width: 80px;
    height: 80px;
    font-size: 38px;
    font-weight: normal;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(12, 198, 56, 0.3);
    color: var(--white);
    font-family: Arial, sans-serif;
}

.about-card:hover .about-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(12, 198, 56, 0.5);
}

/* Иконки контактов */
.contact-icon {
    width: 70px;
    height: 70px;
    font-size: 32px;
    font-weight: normal;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(12, 198, 56, 0.4);
    color: var(--white);
    font-family: Arial, sans-serif;
}

/* Маленькие иконки в hero */
.hero-info .icon {
    width: 45px;
    height: 45px;
    font-size: 22px;
    font-weight: normal;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    flex-shrink: 0;
    background: rgba(12, 198, 56, 0.2);
    backdrop-filter: blur(5px);
    border: 2px solid var(--primary-color);
    color: var(--white);
    font-family: Arial, sans-serif;
    line-height: 1;
    text-align: center;
    padding: 0;
    /* Корректировка для символа часов - смещаем вверх для идеального центрирования */
    transform: translateY(0.08em);
}

/* Toast иконки */
.toast-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-color: var(--primary-color);
}

.toast.error .toast-icon {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: var(--white);
    border: 2px solid #dc3545;
}

.toast.info .toast-icon {
    background: linear-gradient(135deg, #0dcaf0 0%, #0aa2c0 100%);
    color: var(--white);
    border: 2px solid #0dcaf0;
}

/* Анимация пульсации */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.5;
    }
}

/* Альтернативные стили для иконок в participate секции */
.participate-card .participate-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(12, 198, 56, 0.1) 0%, rgba(3, 166, 49, 0.15) 100%);
    border: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 25px;
    transition: var(--transition);
}

.participate-card:hover .participate-icon {
    background: var(--gradient-primary);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(12, 198, 56, 0.4);
}

.participate-card:hover .participate-icon img {
    filter: brightness(0) saturate(100%) invert(100%);
}

/* ===== ПАРТНЕРАМ CTA С МАШИНОЙ ===== */
.partners-cta {
    padding: 120px 0 40px;
    background: transparent;
    position: relative;
    overflow: visible;
}

.partners-cta__grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 30px;
    align-items: center;
}

.partners-cta__header { margin-bottom: 30px; }

.partners-cta__benefits { }

.benefit {
    display: grid;
    grid-template-columns: 60px 1fr;
    align-items: start;
    gap: 16px;
    padding: 15px 0;
}

.benefit__icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(12, 198, 56, 0.1) 0%, rgba(3, 166, 49, 0.15) 100%);
    border-radius: 50%;
    border: 2px solid rgba(12, 198, 56, 0.3);
    transition: var(--transition);
}

.benefit__icon img { 
    width: 28px; 
    height: 28px; 
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(46%) sepia(93%) saturate(1651%) hue-rotate(91deg) brightness(95%) contrast(101%);
}

.benefit:hover .benefit__icon {
    background: var(--gradient-primary);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(12, 198, 56, 0.3);
}

.benefit:hover .benefit__icon img {
    filter: brightness(0) saturate(100%) invert(100%);
}

.benefit__text { 
    color: var(--text-color);
    line-height: 1.6;
}

.partners-cta__action { margin-top: 20px; }


@media (max-width: 1024px) {
    .partners-cta__grid { grid-template-columns: 1fr; }
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.partner-item {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.partner-item img {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
}

/* ===== ФОРМЫ ===== */
.forms {
    padding: 100px 0;
    background: var(--white);
}

.forms-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
}

.form-card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.form-card h3 {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    padding-right: 40px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(12, 198, 56, 0.1);
}

/* Валидация */
.form-group input.valid,
.form-group textarea.valid,
.form-group select.valid {
    border-color: var(--primary-color);
}

.form-group input.invalid,
.form-group textarea.invalid,
.form-group select.invalid {
    border-color: #dc3545;
}

/* Иконки валидации */
.form-group .validation-icon {
    position: absolute;
    right: 15px;
    top: 42px;
    font-size: 18px;
    opacity: 0;
    transition: var(--transition);
}

.form-group .validation-icon.show {
    opacity: 1;
}

.form-group .validation-icon.success {
    color: var(--primary-color);
}

.form-group .validation-icon.error {
    color: #dc3545;
}

.form-group .form-hint {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 5px;
    display: block;
}

/* Сообщения об ошибках */
.error-message {
    display: block;
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Placeholder стили */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
    font-size: 14px;
}

/* Индикатор заполнения */
.form-progress {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin-bottom: 20px;
    overflow: hidden;
}

.form-progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    width: 0;
    transition: width 0.3s ease;
}

/* ===== ИНДИКАТОР ЗАГРУЗКИ ФОРМЫ ===== */
.form-loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    margin: 20px 0;
    background: rgba(12, 198, 56, 0.1);
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(12, 198, 56, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loading-text {
    color: var(--text-color);
    font-weight: 600;
    font-size: 14px;
}

/* ===== ЗАГРУЗКА ФОТОГРАФИЙ ===== */
.photo-upload-info {
    background: rgba(12, 198, 56, 0.05);
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
}

.photo-upload-info p {
    margin: 5px 0;
    font-size: 14px;
    color: var(--text-color);
}

.photo-upload-info small {
    color: var(--text-light);
    font-size: 12px;
}

.file-input {
    padding: 15px;
    border: 2px dashed #ddd;
    border-radius: 10px;
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.file-input:hover {
    border-color: var(--primary-color);
    background: rgba(12, 198, 56, 0.02);
}

.file-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.photos-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.photo-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
    border: 2px solid #ddd;
}

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

.photo-preview-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.photo-preview-remove:hover {
    background: #dc3545;
    transform: scale(1.1);
}

.photo-preview-count {
    text-align: center;
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-light);
}

.photo-preview-count.valid {
    color: var(--primary-color);
}

.photo-preview-count.invalid {
    color: #dc3545;
}

/* ===== КОНТАКТЫ ===== */
.contacts {
    padding: 100px 0;
    background: var(--gradient-dark);
    color: var(--white);
}

.contacts .section-title {
    color: var(--white);
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.contact-card {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
}

.contact-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.contact-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.contact-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
}

.contact-card a:hover {
    text-decoration: underline;
}

.contact-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-links a {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    border-radius: 10px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* ===== FOOTER ===== */
.footer {
    background: #1a1c1f;
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 50px;
    width: auto;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
}

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

.footer ul {
    list-style: none;
}

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

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

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

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

.footer-years {
    margin-bottom: 20px;
}

.footer-years .years-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
    font-weight: 400;
}

.years-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.year-link {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(12, 198, 56, 0.1);
    border: 1px solid rgba(12, 198, 56, 0.3);
    border-radius: 20px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    font-size: 14px;
}

.year-link:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.year-link.current {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    cursor: default;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.social-icons a:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ===== УВЕДОМЛЕНИЯ (TOAST) ===== */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    min-width: 300px;
    max-width: 400px;
    background: var(--white);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease;
    border-left: 4px solid;
}

.toast.success {
    border-left-color: var(--primary-color);
}

.toast.error {
    border-left-color: #dc3545;
}

.toast.info {
    border-left-color: #0dcaf0;
}

.toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    color: var(--primary-color);
}

.toast.error .toast-icon {
    color: #dc3545;
}

.toast.info .toast-icon {
    color: #0dcaf0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
    color: var(--text-color);
}

.toast-message {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.05);
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.toast.removing {
    animation: slideOutRight 0.3s ease forwards;
}

/* ===== КНОПКА НАВЕРХ ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 968px) {
    .hero-main {
        font-size: 48px;
    }
    
    .hero-year {
        font-size: 42px;
    }
    
    .hero-info {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .timeline-item {
        padding-left: 0;
    }
    
    .timeline-time {
        position: relative;
        left: 0;
        margin-bottom: 15px;
    }
    
    .timeline-item::before {
        display: none;
    }
    
    .forms-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .description-title {
        font-size: 28px;
    }
    
    .description-text {
        font-size: 16px;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: rgba(35, 36, 40, 0.98);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        padding: 30px 0;
        gap: 20px;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-cta {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
    
    .hero-main {
        font-size: 36px;
    }
    
    .hero-year {
        font-size: 32px;
    }
    
    .stat-number {
        font-size: 48px;
    }
    
    .about-grid,
    .participate-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    /* Адаптация иконок для планшетов */
    .about-icon {
        width: 70px;
        height: 70px;
        font-size: 34px;
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .hero-info .icon {
        font-size: 20px;
    }
    
    .benefit__icon {
        width: 55px;
        height: 55px;
    }
    
    .benefit__icon img {
        width: 24px;
        height: 24px;
    }
    
    .hero-info .icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-main {
        font-size: 28px;
    }
    
    .hero-year {
        font-size: 26px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .form-card {
        padding: 25px;
    }
    
    .forms-wrapper {
        grid-template-columns: 1fr;
    }
    
    .form-card {
        min-width: auto;
    }
    
    /* Toast для мобильных */
    .toast-container {
        left: 10px;
        right: 10px;
        top: 80px;
    }
    
    .toast {
        min-width: auto;
        max-width: none;
    }
    
    /* Адаптация иконок для мобильных */
    .about-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
        margin-bottom: 15px;
    }
    
    .contact-icon {
        width: 55px;
        height: 55px;
        font-size: 26px;
    }
    
    .hero-info .icon {
        font-size: 18px;
    }
    
    .benefit {
        grid-template-columns: 50px 1fr;
    }
    
    .benefit__icon {
        width: 50px;
        height: 50px;
    }
    
    .benefit__icon img {
        width: 22px;
        height: 22px;
    }
    
    /* Touch-friendly элементы для мобильных */
    .btn {
        min-height: 44px;
        min-width: 44px;
        padding: 14px 30px;
    }
    
    .hamburger {
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="file"],
    select,
    textarea {
        font-size: 16px; /* Предотвращает зум на iOS */
        min-height: 44px;
    }
    
    .gallery-item {
        min-height: 200px;
    }
    
    /* Адаптация слайдера для мобильных */
    .gallery-slider-container {
        padding: 40px 20px;
    }
    
    .gallery-slider-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
    
    .gallery-slider-prev,
    .gallery-slider-next {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
    
    .gallery-slider-prev {
        left: 10px;
    }
    
    .gallery-slider-next {
        right: 10px;
    }
    
    .gallery-slider-counter {
        bottom: 20px;
        font-size: 14px;
        padding: 8px 16px;
    }
    
    .scroll-top {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .hero-info .icon {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .scroll-arrow {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .participate-card .participate-icon {
        width: 65px;
        height: 65px;
    }
}

/* ===== КНОПКА TELEGRAM БОТА ===== */
.telegram-bot-button {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.2s ease;
}

.telegram-bot-button:hover {
    transform: scale(1.05);
}

.telegram-bot-button:active {
    transform: scale(0.98);
}

