/* ========================================== */
/* ENHANCED STYLES - НОВЫЕ СЕКЦИИ */
/* ========================================== */

/* Animated Particles Canvas */
#particlesCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* ========================================== */
/* 1. TIMELINE SECTION */
/* ========================================== */

.timeline-section {
    padding: 120px 0;
    background: var(--bg-card);
    position: relative;
}

.timeline {
    max-width: 900px;
    margin: 60px auto 0;
    position: relative;
}

.timeline-item {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.timeline-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid rgba(255, 69, 0, 0.3);
    background: var(--bg-darker);
    position: relative;
    z-index: 2;
}

.timeline-dot.completed {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.5);
}

.timeline-dot.active {
    background: var(--primary);
    border-color: var(--primary);
    animation: pulse 2s infinite;
}

.timeline-line {
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 69, 0, 0.3) 0%, transparent 100%);
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-content {
    flex: 1;
    background: rgba(255, 69, 0, 0.05);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 69, 0, 0.2);
    position: relative;
    min-height: 180px;
}

.timeline-year {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 900;
    background: var(--gradient-fire);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    line-height: 1;
}

.timeline-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-primary);
    margin-top: 10px;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.timeline-status {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 13px;
    margin-top: 15px;
    color: var(--text-muted);
}

.timeline-status.completed {
    background: rgba(0, 255, 100, 0.1);
    color: #00ff64;
}

.timeline-status.active {
    background: rgba(255, 69, 0, 0.1);
    color: var(--primary);
}

/* ========================================== */
/* 2. GALLERY SECTION */
/* ========================================== */

.gallery-section {
    padding: 120px 0;
    background: var(--bg-darker);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
}

.gallery-image {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
}

.gallery-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 10, 0.95) 100%);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-label {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.gallery-overlay h4 {
    font-size: 20px;
    color: white;
    margin: 0;
}

.gallery-cta {
    text-align: center;
    margin-top: 60px;
}

/* ========================================== */
/* 3. PARTNERS SECTION */
/* ========================================== */

.partners-section {
    padding: 120px 0;
    background: var(--bg-card);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin: 60px 0;
}

.partner-logo {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 69, 0, 0.05);
    border: 1px solid rgba(255, 69, 0, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    background: rgba(255, 69, 0, 0.1);
    border-color: var(--primary);
    transform: translateY(-5px);
}

.partner-name {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 900;
    background: var(--gradient-fire);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.partner-desc {
    font-size: 13px;
    color: var(--text-muted);
}

.partners-cta {
    text-align: center;
    margin-top: 60px;
}

.partners-cta p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* ========================================== */
/* 4. FAQ SECTION */
/* ========================================== */

.faq-section {
    padding: 120px 0;
    background: var(--bg-darker);
}

.faq-grid {
    max-width: 900px;
    margin: 60px auto 0;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid rgba(255, 69, 0, 0.2);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-question {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-question h4 {
    font-size: 18px;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

.faq-toggle {
    width: 32px;
    height: 32px;
    background: rgba(255, 69, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 30px 25px;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
}

/* ========================================== */
/* 5. BOOKING SECTION */
/* ========================================== */

.booking-section {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-card) 100%);
}

.booking-card {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    background: rgba(255, 69, 0, 0.05);
    border: 1px solid rgba(255, 69, 0, 0.2);
    border-radius: 24px;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.booking-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 69, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.booking-content h2 {
    font-size: 42px;
    margin: 20px 0;
}

.booking-content p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.booking-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.booking-form input,
.booking-form select {
    padding: 16px 20px;
    background: var(--bg-darker);
    border: 1px solid rgba(255, 69, 0, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s ease;
}

.booking-form input:focus,
.booking-form select:focus {
    outline: none;
    border-color: var(--primary);
}

.booking-benefits {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.benefit {
    font-size: 13px;
    color: var(--text-secondary);
}

.booking-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.booking-stats {
    text-align: center;
}

.stat-item {
    margin-bottom: 40px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 72px;
    font-weight: 900;
    background: var(--gradient-fire);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.stat-text {
    font-size: 16px;
    color: var(--text-muted);
    margin-top: 10px;
}

/* ========================================== */
/* 6. LOCATION/MAP SECTION */
/* ========================================== */

.location-section {
    padding: 120px 0 0;
    background: var(--bg-card);
}

.map-container {
    margin: 60px 0;
    border-radius: 0;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    filter: grayscale(50%) contrast(1.2) brightness(0.8);
}

.location-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 60px 0;
}

.location-card {
    text-align: center;
    padding: 40px 30px;
    background: rgba(255, 69, 0, 0.05);
    border: 1px solid rgba(255, 69, 0, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.location-card:hover {
    background: rgba(255, 69, 0, 0.1);
    transform: translateY(-5px);
}

.location-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.location-card h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.location-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* ========================================== */
/* RESPONSIVE */
/* ========================================== */

@media (max-width: 768px) {
    .timeline-item {
        flex-direction: column;
        gap: 20px;
    }
    
    .timeline-marker {
        flex-direction: row;
        width: 100%;
    }
    
    .timeline-line {
        width: 100%;
        height: 3px;
        top: 50%;
        left: 24px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }

} /* END @media (max-width: 768px) */

/* ========================================== */
/* VIDEO BACKGROUND */
/* ========================================== */

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
    will-change: transform;
    backface-visibility: hidden;
    opacity: 0;
    animation: fadeInVideo 1s ease-in 0.5s forwards;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 10, 1) 0%,        /* Полностью черный сверху */
        rgba(10, 10, 10, 0.95) 15%,    /* Почти черный */
        rgba(10, 10, 10, 0.7) 40%,     /* Средняя прозрачность */
        rgba(10, 10, 10, 0.5) 60%,     /* Видно видео */
        rgba(10, 10, 10, 0.85) 100%    /* Затемнение внизу */
    );
    z-index: 1;
}

#particlesCanvas {
    z-index: 2 !important;
}

.gradient-overlay {
    z-index: 3 !important;
}

.grid-overlay {
    z-index: 3 !important;
}

.hero-content {
    position: relative;
    z-index: 10 !important;
}

/* Отключаем видео на мобильных для экономии трафика */
@media (max-width: 768px) {
    .hero-video {
        object-fit: cover;
        width: 100%;
        height: 100%;
        min-width: 100%;
        min-height: 100%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .hero-background {
        background: #0a0a0a; /* Фон по краям */
    }
    
    .video-overlay {
        background: rgba(10, 10, 10, 0.85); /* Ещё сильнее затемнение на мобильных */
    }
}

@keyframes fadeInVideo {
    to { opacity: 1; }
}
/* ========================================== */
/* MOBILE FIXES */
/* ========================================== */

@media (max-width: 768px) {

    /* BOOKING - главный фикс: одна колонка, нет обрезки */
    .booking-card {
        grid-template-columns: 1fr;
        padding: 30px 20px;
        gap: 40px;
    }

    .booking-content h2 {
        font-size: 28px;
    }

    .booking-form .form-row {
        grid-template-columns: 1fr;
    }

    .booking-visual {
        display: none; /* скрываем блок со статистикой - не помещается */
    }

    /* HERO STATS - 2 колонки на мобильных */
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* GALLERY */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    /* PARTNERS */
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* TIMELINE */
    .timeline-item {
        flex-direction: column;
        gap: 15px;
    }

    .timeline-year {
        font-size: 36px;
    }

    /* LOCATION */
    .location-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {

    /* BOOKING */
    .booking-card {
        padding: 24px 16px;
        border-radius: 16px;
    }

    .booking-content h2 {
        font-size: 24px;
    }

    .booking-form input,
    .booking-form select {
        font-size: 16px; /* важно для iOS - без зума */
        padding: 14px 16px;
    }

    .booking-benefits {
        flex-direction: column;
        gap: 10px;
    }

    /* HERO */
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-card {
        padding: 15px 10px;
    }

    .stat-value {
        font-size: 22px;
    }

    /* SECTION TITLES */
    .section-title {
        font-size: 28px !important;
    }

    /* PARTNERS */
    .partners-grid {
        grid-template-columns: 1fr;
    }
}