/* --- Базовые настройки и переменные --- */
:root {
    --color-red: #E60000;
    --color-dark: #1a1a1a;
    --color-white: #ffffff;
    --color-gray: #f4f4f4;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --header-height: 80px;
}

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

html {
    scroll-padding-top: var(--header-height);
}

/* === LENIS (Инерционный скролл) === */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

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

section[id] { scroll-margin-top: var(--header-height); }

.section-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 50px;
}

.section-subtitle {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 30px;
    color: var(--color-white);
}

/* --- НАВИГАЦИЯ --- */
.main-nav {
    background-color: var(--color-dark);
    padding: 0 20px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.nav-brand-logo {
    height: 60px;
    width: auto;
}

.nav-logo-text {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
    font-size: 1.1rem;
    white-space: nowrap;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: var(--color-white);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding-bottom: 5px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a:hover { color: var(--color-red); }
.nav-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--color-red);
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }

/* --- КНОПКА ГАМБУРГЕР (по умолчанию скрыта) --- */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-white);
    border-radius: 3px;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 20px; }

/* Анимация крестика */
.nav-toggle.active span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { top: 10px; transform: rotate(-45deg); }


/* --- HERO SECTION --- */
.hero {
    display: flex;
    background-color: var(--color-white);
    padding-top: var(--header-height);
}
.hero-image {
    flex: 1;
    background-color: var(--color-dark);
    min-height: 60vh;
}
.hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5%;
    min-height: 60vh;
}
.hero-text h1 {
    color: var(--color-red);
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(2.5rem, 10vw, 5.5rem);
    line-height: 1.1;
    text-transform: uppercase;
}
.hero-subtitle {
    border-top: 2px solid var(--color-dark);
    margin-top: 20px;
    padding-top: 20px;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 500;
}
.hero-meta {
    margin-top: 30px;
    color: var(--color-red);
    font-family: var(--font-heading);
    font-weight: 700;
}
.hero-button {
    display: inline-block;
    background-color: var(--color-red);
    color: var(--color-white);
    padding: 15px 30px;
    margin-top: 40px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    text-align: center;
    max-width: 300px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.hero-button:hover {
    background-color: #a10000;
    transform: translateY(-2px);
}

/* --- PARTNERS MARQUEE --- */
.partners-marquee {
    background-color: var(--color-white);
    padding: 25px 0;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 10;
    width: 100%;
}
.marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 80px;
    animation: scroll 30s linear infinite;
    will-change: transform;
}
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.marquee-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.marquee-item img {
    display: block;
    width: auto;
    transition: transform 0.3s ease;
    opacity: 1 !important;
}
.marquee-item:hover img { transform: scale(1.05); }

/* РАЗМЕРЫ ЛОГОТИПОВ */
.logo-dalimo { height: 85px !important; } /* Увеличили */
.logo-big { height: 65px !important; width: auto; } /* Новый класс для выделенных партнеров */
.logo-standard { height: 48px !important; }
.logo-compact, .marquee-item img[alt="ВБелую"] { height: 29px !important; }
.logo-blastbit { height: 32px !important; width: auto; }

/* --- FEATURES & VALUES --- */
.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
.feature-card {
    background-color: var(--color-white);
    border: 1px solid #ddd;
    color: var(--color-dark);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--color-dark);
}
.feature-card p { line-height: 1.6; font-size: 0.95rem; }

.outline-button {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    border: 2px solid var(--color-red);
    color: var(--color-red);
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}
.outline-button:hover {
    background-color: var(--color-red);
    color: white;
}

/* --- PROGRAMS SECTION --- */
.programs-section {
    padding: 80px 20px;
    background-color: #ffffff;
    border-top: 1px solid #eee;
}

.programs-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.program-card {
    background-color: var(--color-white);
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

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

.program-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--color-dark);
    margin-bottom: 15px;
    line-height: 1.2;
}

.program-desc {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #555;
    font-weight: 500;
}

.program-features h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--color-red);
}

.program-features ul {
    list-style: none;
    margin-bottom: 20px;
}

.program-features li {
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 0.95rem;
    padding-left: 20px;
    position: relative;
}

.program-features li::before {
    content: '•';
    color: var(--color-red);
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}

.program-value {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    font-size: 0.95rem;
    margin-bottom: 30px;
    border-left: 4px solid var(--color-dark);
}

.program-footer {
    margin-top: auto;
    text-align: center;
}

.program-price {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 2rem;
    color: var(--color-dark);
    margin-bottom: 15px;
}


/* --- BONUS SECTION --- */
.bonus-section {
    background-color: var(--color-dark);
    padding: 60px 20px;
    text-align: center;
    background-image: linear-gradient(45deg, #1a1a1a 25%, #222 25%, #222 50%, #1a1a1a 50%, #1a1a1a 75%, #222 75%, #222 100%);
    background-size: 40px 40px;
}
.bonus-container {
    max-width: 900px;
    margin: 0 auto;
    border: 2px solid #d4af37;
    padding: 40px;
    border-radius: 10px;
    position: relative;
}
.bonus-title {
    color: #d4af37;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-transform: uppercase;
}
.bonus-text {
    color: white;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
}
.bonus-text strong {
    color: var(--color-red);
    font-size: 1.3rem;
}
.bonus-call {
    color: #ccc;
    font-style: italic;
}
.bonus-call span {
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-style: normal;
}


/* --- TICKETS SECTION --- */
.tickets-section {
    padding: 80px 20px;
    background-color: var(--color-gray);
}
.tickets-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}
.ticket-card {
    background-color: var(--color-white);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    width: 350px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ticket-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}
.ticket-card h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-red);
    margin-bottom: 5px;
    text-transform: uppercase;
}
.ticket-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}
.ticket-price {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.ticket-button {
    display: block;
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 15px;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-family: var(--font-heading);
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: auto;
}
.ticket-button:hover {
    background-color: var(--color-red);
    transform: translateY(-2px);
}
.ticket-features {
    list-style: none;
    margin-bottom: 25px;
    text-align: left;
    flex-grow: 1;
}
.ticket-features li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
    line-height: 1.5;
    font-size: 0.95rem;
}
.ticket-features li::before {
    content: '✔';
    color: var(--color-red);
    position: absolute;
    left: 0;
    font-weight: 700;
}
.commission-info {
    max-width: 800px;
    margin: 50px auto 0 auto;
    padding: 20px;
    background-color: #e9e9e9;
    border-radius: 8px;
    text-align: center;
}


/* --- PROGRAM TIMELINE --- */
.program-section {
    padding: 80px 20px;
    background-color: var(--color-dark);
}
.program-section .section-title { color: var(--color-white); }
.timeline { max-width: 1000px; margin: 0 auto; }

.timeline-item {
    padding-bottom: 40px;
    position: relative;
    border-left: 2px solid var(--color-red);
    padding-left: 30px;
}
.timeline-item:last-child { border-left: 2px solid transparent; } 

.timeline-item::before {
    content: '';
    width: 12px;
    height: 12px;
    background-color: var(--color-red);
    border: 2px solid var(--color-white);
    border-radius: 50%;
    position: absolute;
    left: -7px;
    top: 5px;
}
.timeline-time {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-red);
    margin-bottom: 8px;
}
.timeline-content {
    background-color: var(--color-white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.timeline-content h3 {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.speaker-link {
    color: var(--color-red);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px dashed var(--color-red);
    transition: all 0.3s ease;
}
.speaker-link:hover {
    background-color: var(--color-red);
    color: white;
    border-bottom: none;
}

.track-card { padding: 0; overflow: hidden; }
.track-card h3 { padding: 20px 20px 0 20px; }
.track-card ul { list-style-type: none; margin: 15px 0; padding: 0 20px 20px 20px; }
.track-card li { line-height: 1.6; padding-left: 20px; position: relative; margin-bottom: 10px; }
.track-card li::before { content: '✔'; color: var(--color-red); position: absolute; left: 0; }
.track-giveaway {
    background-color: var(--color-red);
    color: var(--color-white);
    padding: 10px 15px;
    font-size: 0.9rem;
    text-align: center;
}

/* Сетка для параллельных треков */
.parallel-tracks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 0;
    margin-bottom: 40px;
}

.parallel-tracks .timeline-item { 
    padding-bottom: 20px;
}

.hackathon-timeline-block {
    margin-bottom: 20px;
    padding: 15px 20px;
    border-left: 4px solid var(--color-red);
    background: #f9f9f9;
}
.hackathon-timeline-block h4 {
    color: var(--color-dark);
    margin-bottom: 10px;
    font-weight: 900;
}
.hackathon-timeline-block ul {
    list-style-type: none;
}
.hackathon-timeline-block li {
    margin-bottom: 5px;
    position: relative;
    padding-left: 20px;
}
.hackathon-timeline-block li::before {
    content: '•';
    color: var(--color-red);
    position: absolute;
    left: 0;
    font-weight: bold;
}
.hackathon-grant-block {
    background: var(--color-red);
    color: white;
    padding: 25px;
    border-radius: 8px;
    margin-top: 30px;
    text-align: center;
}
.hackathon-grant-block h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}
.hackathon-card {
    background-color: #f8f8f8;
    border-left: 4px solid var(--color-red);
    height: 100%;
}
.hackathon-link {
    display: inline-block;
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--color-red);
    text-decoration: none;
    font-weight: 700;
}
.hackathon-link:hover { text-decoration: underline; }


/* --- SPEAKERS --- */
.speakers-section {
    padding: 80px 20px;
    background-color: var(--color-gray);
}
.speakers-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}
.speaker-card {
    background-color: var(--color-white);
    border-radius: 8px;
    padding: 30px;
    width: 350px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    scroll-margin-top: 100px;
}
.speaker-card:hover { transform: translateY(-5px); }
.speaker-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px auto;
    border: 4px solid var(--color-white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.speaker-name {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    margin-bottom: 5px;
}
.speaker-title { color: var(--color-red); font-weight: 700; margin-bottom: 15px; }
.speaker-bio { font-size: 0.95rem; line-height: 1.6; }


/* --- FOOTER --- */
.footer {
    padding: 60px 20px;
    background-color: var(--color-dark);
    border-top: 2px solid var(--color-red);
}

.footer-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-block {
    color: var(--color-gray);
    flex: 1;
    min-width: 200px;
}

.footer-block h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-white);
    margin-bottom: 15px;
}

.footer-block p {
    line-height: 1.7;
    margin-bottom: 5px;
}

.footer-logo-img {
    width: 100%;
    max-width: 260px;
    height: auto;
    display: block;
    margin-bottom: 20px;
}


/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 992px) {
    .nav-links { gap: 15px; }
    .nav-links a { font-size: 0.8rem; }
    .programs-container { grid-template-columns: 1fr; }
}

/* --- МОБИЛЬНАЯ ВЕРСИЯ (Фикс шапки и меню) --- */
@media (max-width: 768px) {
    
    .main-nav {
        height: 70px; 
        padding: 0 15px;
    }
    
    .nav-container {
        justify-content: space-between;
        width: 100%;
    }

    .nav-brand-logo { height: 35px; }
    
    .nav-logo-text { 
        font-size: 0.85rem; 
        white-space: normal; 
        line-height: 1.2;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: rgba(26, 26, 26, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 20px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        border-top: 1px solid #333;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 10px;
        display: block;
    }

    .hero { flex-direction: column; clip-path: none; }
    .hero-image { display: none; }
    .hero-text { min-height: auto; padding: 100px 20px 40px 20px; }
    
    .parallel-tracks { grid-template-columns: 1fr; }
    .footer-container { flex-direction: column; text-align: center; }
    .footer-logo-img { margin: 0 auto 20px auto; }
    
    .marquee-track { gap: 40px; animation-duration: 20s; }
    .logo-dalimo { height: 60px !important; }
    .logo-big { height: 45px !important; }
    .logo-standard { height: 35px !important; }
    .logo-compact, .marquee-item img[alt="ВБелую"] { height: 22px !important; }
}