:root {
    --purple: #8a2be2;
    --lime: #c1ff00;
    --bg: #003153;
    --card-bg: rgba(255, 255, 255, 0.03);
}






/* КОНТЕЙНЕР */
.container1 { max-width: 1100px; margin: 0 auto; padding: 300px 20px; position: relative; z-index: 10; }

.page-header { text-align: center; margin-bottom: 60px; }
.tech-tag { font-family: monospace; font-size: 0.7rem; color: var(--lime); letter-spacing: 5px; display: block; margin-bottom: 15px; }
.page-header h1 { font-size: 3rem; font-weight: 900; margin-bottom: 10px; }
.page-header h1 span { color: var(--lime); }
.page-header p { color: #666; font-size: 1rem; }

/* СПИСОК ДОКУМЕНТОВ СТОЛБИКОМ */
.docs-list { display: flex; flex-direction: column; gap: 20px; }

.doc-item {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    transition: 0.3s ease;
}

.doc-item:hover {
    transform: translateX(10px);
    border-color: var(--purple);
    background: rgba(255, 255, 255, 0.06);
}

.doc-info { display: flex; align-items: center; gap: 20px; }

.doc-icon {
    width: 50px; height: 50px;
    background: rgba(138, 43, 226, 0.1);
    border: 1px solid var(--purple);
    color: var(--purple);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 900; border-radius: 10px;
}

.doc-text h3 { font-size: 1.1rem; margin-bottom: 4px; font-weight: 600; }
.doc-text span { font-size: 0.8rem; color: #555; }

/* КНОПКА ССЫЛКА */
.btn-download {
    text-decoration: none;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: 0.3s;
}

.btn-download:hover {
    background: var(--purple);
    border-color: var(--purple);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.4);
}

/* Адаптив */
@media (max-width: 600px) {
    .doc-item { flex-direction: column; align-items: flex-start; gap: 20px; }
    .btn-download { width: 100%; text-align: center; }
}






















:root {
    --bg:   #003153;;
    --lime: #c1ff00;
    --white: #fff;
    --purp: #8a2be2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000; /* Чтобы не было светлых просветов */
    overflow-x: hidden; /* Защита от горизонтального скролла */
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 50% 50%, #1a0b2e 0%, #0a0514 100%);
    color: #fff;
}

.grid-bg {
    /* Сетка теперь фиолетовая, еле заметная */
    background-image: linear-gradient(rgba(138, 43, 226, 0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(138, 43, 226, 0.05) 1px, transparent 1px);
}

.header {
    position: fixed; /* Или absolute, если он не должен ездить при скролле */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    margin: 0 !important;
    background: rgba(0, 0, 0, 0.9); /* Убедись, что фон хедера темный */
    backdrop-filter: blur(10px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }




html, body { 
    width: 100%; 
    height: 100%;
    background: var(--bg); 
    color: var(--white); 
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden; /* ЗАПРЕТ СКРОЛЛА ВПРАВО */
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 30px; position: relative; }

/* ФИГУРЫ НА ФОНЕ */
.bg-visuals {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    overflow: hidden;
    pointer-events: none;
}
.shape {
    position: absolute;
    border: 1px solid rgba(193, 255, 0, 0.15); /* ЛАЙМОВЫЙ КОНТУР */
    border-radius: 50%;
}
.s-1 { width: 600px; height: 600px; right: -150px; top: -100px; }
.s-2 { width: 1000px; height: 1000px; right: -300px; bottom: -200px; }

/* HEADER */
/* БАЗОВЫЙ ХЕДЕР */
header { 
    position: fixed; /* Сразу ставим fixed, чтобы не прыгал */
    top: 0;
    left: 0;
    width: 100%; 
    z-index: 1000; /* Самый высокий приоритет */
    padding: 30px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Плавный градиент сверху, чтобы даже без скролла кнопки были видны */
    background: linear-gradient(to bottom, rgba(10,10,10,0.8) 0%, transparent 100%);
}

/* ХЕДЕР ПРИ СКРОЛЛЕ (АКЦЕНТ) */
/* Усиленный Хедер при скролле */
header.header-scroll {
    padding: 12px 0;
    background: #000000; /* Чисто черный, никакой прозрачности */
    border-bottom: 2px solid var(--lime); /* Жирная линия для акцента */
    box-shadow: 0 15px 40px rgba(5, 5, 5, 0.678); /* Глубокая тень */
}

/* Фикс для наложения */
header {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.425) 0%, rgba(0, 0, 0, 0.486) 60%, transparent 100%);
}
/* Чтобы контент первого экрана не залезал под хедер сразу, 
   добавим отступ самой секции hero */
.hero { 
    padding-top: 100px; 
}
.hero-section {
    padding-top: 100px; /* Регулируй под высоту своего хедера */
    margin-top: 0 !important;
}
.header-wrap { display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 900; font-size: 1.7rem; }
.logo span { color: var(--lime); }

.header-right { display: flex; align-items: center; gap: -200px; }


.logo-link {
    display: inline-block;
    text-decoration: none; /* Убирает подчёркивание ссылки */
    color: inherit; /* Сохраняет исходный цвет текста */
}

/* КНОПКИ В ХЕДЕРЕ */
.btn-glow { 
    text-decoration: none; font-size: 13px; font-weight: 900; text-transform: uppercase;
    padding: 14px 28px; border-radius: 50px; border: 2px solid rgba(255,255,255,0.1); 
    color: #fff; transition: 0.3s ease;
}
.btn-glow.bvb:hover { background: var(--purp); border-color: var(--purp); box-shadow: 0 0 30px var(--purp); transform: translateY(-3px); }
.btn-glow.nvg:hover { background: var(--lime); color: #000; border-color: var(--lime); box-shadow: 0 0 30px var(--lime); transform: translateY(-3px); }

.login-link {
    color: #fff;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 13px;
    text-decoration: none;
    margin: 0 10px;
    opacity: 0.7;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 20px;
}

.login-link:hover {
    opacity: 1;
    color: #fff;
}
/* НАВЕДЕНИЕ: ОБВОДКА */
.burger-trigger, .close-trigger { 
    color: #fff;
    opacity: 0.7;
    opacity: 0.7;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 50px
}
.burger-trigger:hover, .close-trigger:hover { 
    opacity: 1;
    color: #fff;
}
.b-icon {
    display: flex;
    flex-direction: column;
    gap: 5px; /* Расстояние между палками */
}
.burger-trigger span, .close-trigger span { font-size: 13px; font-weight: 900; }
.b-icon span, .close-icon span { display: block; background: var(--lime); height: 2px; width: 20px; }

/* МЕНЮ ОВЕРЛЕЙ */
.menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: #020202; z-index: 2000; display: flex; align-items: center;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.8, 0, 0.2, 1);
}
.menu-overlay.active { transform: translateY(0); }

.menu-rel-box { height: 100%; display: flex; align-items: center; width: 100%; position: relative; }

.close-trigger { position: absolute; top: 40px; right: 30px; } /* СТРОГО НАД МЕНЮ */
.close-icon { width: 26px; height: 26px; position: relative; }
.close-icon span { width: 100%; position: absolute; top: 12px; }
.close-icon span:nth-child(1) { transform: rotate(45deg); }
.close-icon span:nth-child(2) { transform: rotate(-45deg); }

.nav-content { display: flex; gap: 120px; }
.nav-block a { display: block; font-size: 3rem; font-weight: 900; color: #fff; text-decoration: none; margin-bottom: 30px; transition: 0.3s; }
.nav-block a:hover { color: var(--lime); transform: translateX(20px); }

/* HERO */
.hero { height: 100vh; display: flex; align-items: center; }
h1 { font-size: 6.5rem; font-weight: 900; line-height: 0.85; text-transform: uppercase; }
.text-outline {
    color: var(--bg);
    text-shadow: 1px 1px 0 #fff, -1px 1px 0 #fff, 1px -1px 0 #fff, -1px -1px 0 #fff;
}
p { margin: 35px 0; font-size: 1.6rem; color: rgba(255,255,255,0.4); }
.cta-button {
    padding: 24px 65px;
    background: var(--lime);
    border: none;
    font-weight: 900;
    text-transform: uppercase;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
}

.cta-button:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 0 40px rgba(193, 255, 0, 0.6); /* Мощное свечение лаймом */
    background: #d4ff33; /* Чуть светлее при наведении */
}









.events-section {
    position: relative;
    padding: 250px 0; /* Увеличим отступ сверху */
    z-index: 5; /* Чтобы секция была под хедером, но над фоновыми фигурами */
}

.section-title {
    position: relative;
    z-index: 10;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 60px; /* Отступ от заголовка до новостей */
    text-transform: uppercase;
    color: #fff;
    opacity: 1 !important; /* На случай, если анимация reveal его скрыла */
    transform: none !important;
}

.section-title span {
    color: var(--lime);
}

/* Фикс, чтобы слайдер не «съедал» заголовок при скролле */
.slider-wrapper {
    margin-top: 20px;
} 

.slider-wrapper {
    width: 100vw;
    overflow-x: hidden;
    cursor: grab;
    padding: 20px 0 60px 0;
    position: relative;
    /* Убираем синее выделение при клике на мобилках */
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: auto !important; /* Важно: отключаем плавность для JS-прыжка */
    touch-action: pan-y; /* Позволяет скроллить страницу вертикально на мобилках */
    user-select: none;
    -webkit-user-select: none;
}


.slider-wrapper:active { cursor: grabbing; }

.slider-track {
    display: flex;
    gap: 40px;
    width: max-content;
    padding-left: calc((100vw - 1200px) / 2 + 30px);
    padding-right: 100px;
    will-change: transform;
}

@media (max-width: 1240px) {
    .slider-track { padding-left: 30px; }
}

/* КАРТОЧКА */
.event-card {
    width: 420px;
    background: #111;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1), border-color 0.3s ease;
    user-select: none;
}

.event-card:hover {
    border-color: var(--lime);
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 20px rgba(193, 255, 0, 0.1);
}

.card-img { width: 100%; height: 240px; overflow: hidden; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; pointer-events: none; }
.event-card:hover .card-img img { transform: scale(1.1); }

.card-content { padding: 30px; position: relative; }

.card-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--lime);
    border: 1px solid var(--lime);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.card-content h3 { font-size: 1.6rem; margin-bottom: 12px; color: #fff; line-height: 1.2; }
.card-content p { font-size: 1rem; color: rgba(255,255,255,0.5); margin-bottom: 25px; line-height: 1.6; }

.card-btn {
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: gap 0.3s;
}
.card-btn span { color: var(--lime); font-size: 18px; }
.card-btn:hover { color: var(--lime); gap: 15px; }

















.snake-section {
    position: relative;
    padding: 250px 0;
    overflow: hidden;
}

/* Плавный вырез сверху (переход) */
.curve-divider {
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 400px;
    clip-path: ellipse(70% 100% at 50% 0%); /* Создает вогнутую линию */
}

.snake-container {
    position: relative;
    height: 1400px; /* Высота всего пути */
    margin-top: 50px;
}

.snake-svg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Точки на змейке */
.snake-node {
    position: absolute;
    z-index: 10;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
}

.node-dot {
    width: 24px;
    height: 24px;
    background: var(--lime);
    border: 4px solid #000;
    border-radius: 50%;
    box-shadow: 0 0 20px var(--lime);
    transition: 0.3s;
}

.node-info {
    position: absolute;
    left: 45px; /* Чуть отодвинули от точки */
    width: 280px;
    padding: 20px;
    opacity: 0; /* По умолчанию скрыто, появится при ховере или через reveal */
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* ЭФФЕКТ СТЕКЛА */
    background: rgba(255, 255, 255, 0.03); /* Почти прозрачный белый */
    backdrop-filter: blur(15px); /* Тот самый ахуенный блюр */
    -webkit-backdrop-filter: blur(15px);
    
    border: 1px solid rgba(255, 255, 255, 0.1); /* Тонкая грань стекла */
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    
    pointer-events: none; /* Чтобы карточка не мешала скроллу, пока не активна */
}

/* Показываем при наведении на всю группу точки */
.snake-node:hover .node-info {
    opacity: 1;
    visibility: visible;
    transform: translateX(15px); /* Легкий выезд вправо */
}

.node-info h3 {
    font-size: 1.1rem;
    color: var(--lime);
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 1px;
    font-weight: 900;
}

.node-info p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    margin: 0;
}

/* Фикс для правых точек (5 и 6), чтобы карточки выезжали влево */
.node-5 .node-info, .node-6 .node-info {
    left: auto;
    right: 45px;
    text-align: right;
}

.node-5:hover .node-info, .node-6:hover .node-info {
    transform: translateX(-15px); /* Выезд влево */
}












.reviews-section {
    padding: 400px 0;
    position: relative;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.review-card {
    padding: 40px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: all 0.4s ease;
}

.review-card:hover {
    border-color: var(--lime);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.quote-icon {
    font-size: 80px;
    color: var(--lime);
    font-family: serif;
    position: absolute;
    top: 10px;
    left: 30px;
    opacity: 0.2;
}

.review-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.author-info h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 4px;
}

.author-info span {
    font-size: 0.85rem;
    color: var(--lime);
    font-weight: 700;
}
.reviews-section {
    padding: 100px 0;
    width: 100%;
    min-height: 500px; /* Чтобы секция не была нулевой высоты */
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.review-card {
    opacity: 1 !important; /* Принудительно показываем */
    transform: none !important;
    background: #151515;
    padding: 35px;
    border-radius: 20px;
    border: 1px solid rgba(193, 255, 0, 0.1);
    transition: 0.3s;
}

.review-card:hover {
    border-color: var(--lime);
    background: #1a1a1a;
}

.review-text {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 20px;
}

.author-info h4 { color: #fff; margin: 0; }
.author-info span { color: var(--lime); font-size: 0.8rem; }
















.faq-section { padding: 500px 0; background: --bg; }

.faq-container { max-width: 800px; margin: 50px auto 0; }

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
}

.faq-question {
    padding: 25px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}

.faq-question h3 {
    font-size: 1.2rem;
    color: #fff;
    font-weight: 500;
}

.faq-icon {
    width: 20px;
    height: 2px;
    background: var(--lime);
    position: relative;
    transition: 0.4s;
}

.faq-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--lime);
    transform: rotate(90deg);
    transition: 0.4s;
}

/* Когда открыто — иконка превращается в минус */
.faq-item.active .faq-icon::after {
    transform: rotate(0deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer p {
    padding-bottom: 25px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    font-size: 1rem;
}

.faq-item.active .faq-answer {
    max-height: 200px; /* Достаточно для текста */
}










.main-footer {
    background: #050505;
    padding: 60px 0 20px;
    border-top: 1px solid var(--lime);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 40px;
}

/* ЛЕВАЯ ЧАСТЬ */
.tag {
    display: block;
    color: var(--lime);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.contact-box { margin-bottom: 35px; }
.tel-link { font-size: 1.5rem; color: #fff; text-decoration: none; font-weight: 700; }
.contact-box p { color: #666; margin-top: 5px; }

.res-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.res-list a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 12px;
    background: #111;
    border-radius: 8px;
    transition: 0.3s;
    border: 1px solid transparent;
}
.res-list a:hover { border-color: var(--lime); color: var(--lime); }

/* ФОРМА */
.form-card { background: #0a0a0a; padding: 35px; border-radius: 20px; border: 1px solid #1a1a1a; }
.form-card h3 { margin-bottom: 20px; color: #fff; }

.final-form { display: flex; flex-direction: column; gap: 12px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.final-form input, .final-form select, .final-form textarea {
    background: #151515;
    border: 1px solid #222;
    padding: 14px;
    color: #fff;
    border-radius: 10px;
    outline: none;
    font-size: 0.95rem;
}

.final-form textarea { height: 80px; resize: none; }

.f-btn {
    background: var(--lime);
    color: #000;
    border: none;
    padding: 16px;
    font-weight: 900;
    text-transform: uppercase;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 10px;
}

/* КОПИРАЙТ */
.footer-bottom-line {
    text-align: center;
    border-top: 1px solid #1a1a1a;
    padding-top: 20px;
}
.footer-bottom-line p { color: #333; font-size: 0.8rem; margin: 0; }

/* МОБИЛЬНЫЕ ССЫЛКИ */
.mobile-only-link { display: none; background: rgba(193, 255, 0, 0.1) !important; }

/* АДАПТИВ */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .mobile-only-link { display: block !important; }
}

@media (max-width: 500px) {
    .f-row { grid-template-columns: 1fr; }
    .res-list { grid-template-columns: 1fr; }
}



















#preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 10000;
    display: flex; justify-content: center; align-items: center;
    background: transparent; /* Фон держат шторки */
    overflow: hidden;
}

/* Две черные панели, которые разъедутся в конце */
.shutter-top, .shutter-bottom {
    position: absolute;
    left: 0; width: 100%; height: 51%; /* 51 чтобы не было щели в центре */
    background: #050505;
    z-index: 1;
    transition: transform 1s cubic-bezier(0.85, 0, 0.15, 1);
}

.shutter-top { top: 0; }
.shutter-bottom { bottom: 0; }

.preloader-content {
    position: relative;
    z-index: 2;
}

.reveal-text {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 15px; /* Широкий трекинг — признак дорогого бренда */
    color: #fff;
    opacity: 0;
    filter: blur(10px);
    transform: scale(0.95);
    animation: textAppear 1s ease forwards;
}

.reveal-text span { color: var(--lime); }

@keyframes textAppear {
    to {
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
        letter-spacing: 10px;
    }
}

/* Состояние после загрузки */
#preloader.loaded .shutter-top {
    transform: translateY(-100%);
}
#preloader.loaded .shutter-bottom {
    transform: translateY(100%);
}
#preloader.loaded .reveal-text {
    opacity: 0;
    filter: blur(20px);
    transition: 0.4s ease;
}



















/* КЛАССЫ ДЛЯ АНИМАЦИИ ПОЯВЛЕНИЯ */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.2, 0, 0.2, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- АДАПТИВНАЯ ВЕРСТКА --- */

@media (max-width: 1024px) {
    h1 { font-size: 4.5rem; }
    .nav-content { gap: 60px; }
}

@media (max-width: 768px) {
    /* 1. ХЕДЕР: Прячем длинные кнопки, оставляем только важное */
    .btn-glow { display: none; } /* Скрываем "Билет" и "Навигатор" на мобилках */
    
    header { top: 20px; }
    .container { padding: 0 20px; }
    
    /* 2. ГЛАВНЫЙ ЭКРАН */
    .hero-box { text-align: center; width: 100%; }
    
    h1 { 
        font-size: 3rem; 
        line-height: 1.1; 
        margin-top: 20px;
    }
    
    p { font-size: 1.1rem; margin: 20px 0 40px; }
    
    .cta-button { 
        width: 100%; /* Кнопка на всю ширину для удобства нажатия */
        padding: 20px; 
    }

    /* 3. МЕНЮ: Перестраиваем в один столбец */
    .nav-content { 
        flex-direction: column; 
        gap: 40px; 
        padding-top: 80px; /* Чтобы не перекрывалось кнопкой закрыть */
    }
    
    .nav-block a { font-size: 2.2rem; }
    
    /* 4. ФИГУРЫ: Уменьшаем, чтобы не мешались */
    .s-1 { width: 300px; height: 300px; right: -100px; }
    .s-2 { width: 500px; height: 500px; bottom: -100px; right: -150px; }
    
    /* Кнопка закрыть в меню на мобилке */
    .close-trigger { top: 25px; right: 20px; }
}

@media (max-width: 480px) {
    h1 { font-size: 2.5rem; }
    .logo { font-size: 1.3rem; }
    
    /* Делаем обводку текста чуть тоньше для мелких экранов */
    .text-outline {
        text-shadow: 1px 1px 0 #fff, -1px 1px 0 #fff;
    }
}































/* --- АДАПТИВНАЯ МАГИЯ --- */

/* 1. Общие настройки для планшетов и мобилок */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .section-title {
        font-size: 2.5rem; /* Чуть меньше заголовки */
    }
}

/* 2. Исправляем "Змейку" (Единую модель) */
@media (max-width: 900px) {
    .snake-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
        height: auto !important;
        padding: 20px !important;
    }

    .snake-svg {
        display: none; /* Убираем путаницу с линией */
    }

    .snake-node {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        margin-bottom: 10px;
    }

    .node-info {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        width: 100% !important;
        transform: none !important;
        text-align: left !important; /* ВСЕ заголовки влево */
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(193, 255, 0, 0.2);
        border-left: 4px solid var(--lime) !important; /* Жирный акцент слева */
        padding: 20px !important;
        display: block !important;
    }

    /* Убираем специфические настройки для 5 и 6 блоков, которые тянули вправо */
    .node-5 .node-info, .node-6 .node-info {
        text-align: left !important;
        right: auto !important;
        left: 0 !important;
    }

    .node-number {
        display: inline-block;
        margin-bottom: 10px;
        background: var(--lime);
        color: #000;
        width: 30px;
        height: 30px;
        text-align: center;
        line-height: 30px;
        border-radius: 50%;
        font-weight: 900;
    }
}


/* 3. Исправляем Слайдер Мероприятий */
@media (max-width: 768px) {
    .slider-item {
        width: 280px; /* Уменьшаем карточки, чтобы влезали */
        height: 380px;
    }
    
    .slider-item h3 {
        font-size: 1.2rem;
    }
}

/* 4. Футер и Форма на телефонах */
@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .f-row {
        grid-template-columns: 1fr; /* Поля формы встают в один ряд */
    }

    .res-list {
        grid-template-columns: 1fr; /* Ресурсы в один ряд */
    }

    .main-link {
        font-size: 1.3rem; /* Телефон поменьше */
    }

    .form-card {
        padding: 20px; /* Меньше падинги, больше места под текст */
    }
}

/* 5. Хедер (Навигация) */
@media (max-width: 480px) {
    .nav-links {
        display: none; /* Прячем обычное меню, если не делали бургер */
    }
    
    /* Если у тебя есть кнопка "Начать путь", центрируем её */
    .header .btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
}












































:root {
    --purple: #8a2be2;
    --lime: #c1ff00;
}




@keyframes move {
    from { transform: translate(0, 0) scale(1) rotate(0deg); }
    to { transform: translate(100px, 50px) scale(1.2) rotate(30deg); }
}

.grid-bg {
    position: fixed; inset: 0; z-index: -1;
    background-image: radial-gradient(rgba(138, 43, 226, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* КОНТЕЙНЕР ПИНТЕРЕСТА */
.main-wrapper { max-width: 1400px; margin: 0 auto; padding: 190px 20px; }

header { text-align: center; margin-bottom: 60px; }
header h1 { font-size: 3rem; font-weight: 900; }
header h1 span { color: var(--lime); }

.pinterest-grid {
    column-count: 3; /* Три колонки */
    column-gap: 25px;
}

.news-item {
    break-inside: avoid; /* Не дает карточке разрываться */
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.news-item:hover { transform: translateY(-10px); border-color: var(--lime); }

/* РАЗНЫЕ ВЫСОТЫ ДЛЯ ПИНТЕРЕСТ ВАЙБА */
.thumb { width: 100%; background-size: cover; background-position: center; }
.h-200 { height: 200px; }
.h-250 { height: 250px; }
.h-300 { height: 300px; }
.h-350 { height: 350px; }
.h-450 { height: 450px; }
.h-500 { height: 500px; }

.info { padding: 25px; }
.info h3 { font-size: 1.4rem; margin-bottom: 10px; }
.info p { color: #888; font-size: 0.95rem; margin-bottom: 20px; line-height: 1.5; }

/* КНОПКА ПОДРОБНЕЕ */
.btn-detail {
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: gap 0.3s;
}

.btn-detail:hover {
    color: var(--lime); gap: 15px; 
}

/* Адаптив */
@media (max-width: 900px) { .pinterest-grid { column-count: 2; } }
@media (max-width: 600px) { .pinterest-grid { column-count: 1; } }


.btn-detail span { color: var(--lime); font-size: 18px; }


/* ФИНАЛЬНЫЙ ФИКС ДЛЯ ТВОЕГО МЕНЮ */

/* 1. Когда меню закрыто — полностью аннигилируем его видимость и кликабельность */
#menu-overlay {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    /* Уводим его вверх, чтобы даже "хвосты" не торчали */
    transform: translateY(-100%) !important; 
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1000;
}

/* 2. Когда меню открыто (добавляем класс active) */
#menu-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

/* 3. Фикс той самой вылетающей ссылки */
/* Мы принудительно скрываем все ссылки внутри навигации, пока оверлей не активен */
#menu-overlay:not(.active) .nav-content a, 
#menu-overlay:not(.active) .nav-block {
    display: none !important;
}

/* 4. Защита хедера */
#main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 500; /* Хедер ниже открытого меню, но выше контента */
    overflow: hidden; /* Обрезаем всё, что пытается вылезти из хедера */
}

/* 5. Уменьшаем размер для мобилок (iPhone 11 и т.д.), чтобы всё влезло */
@media screen and (max-width: 430px) {
    .nav-content {
        padding-top: 80px !important; /* Даем место кнопке закрыть */
    }
    .nav-block {
        margin-bottom: 20px !important;
    }
    .links a {
        font-size: 16px !important; /* Уменьшаем шрифт ссылок */
        margin-bottom: 8px !important;
        display: block;
    }
    .category {
        font-size: 12px !important;
        margin-bottom: 10px !important;
    }
}


/* ЖЕСТКИЙ ПЕРЕНОС ДЛЯ МОБИЛОК (iPhone 11 и др.) */
@media screen and (max-width: 480px) {
    
    /* 1. Уменьшаем гигантские отступы шапки */
    header, header.header-scroll {
        padding: 10px 0 !important; /* Вместо 30px ставим 10px */
        height: 60px !important; /* Фиксируем высоту, чтобы не раздувало */
        display: flex;
        align-items: center;
    }

    /* 2. ЛОГОТИП: Теперь он точно уменьшится */
    .logo {
        font-size: 1.1rem !important; /* Уменьшаем с 1.7rem до 1.1rem */
        white-space: nowrap !important;
    }
    
    .logo span {
        font-size: 1.1rem !important;
    }

    /* 3. КОНТЕЙНЕР: Убираем лишние отступы по бокам */
    .container {
        padding: 0 15px !important; /* В два раза меньше отступы от краев экрана */
    }

    /* 4. ПРАВАЯ ЧАСТЬ: Вправляем мозги кнопкам */
    .header-right {
        gap: -500px !important; /* Сужаем расстояние между Войти и Меню */
        margin-left: auto; /* Прижимаем к логотипу, но с зазором */
    }

    /* 5. УДАЛЯЕМ ЛИШНЕЕ: Билет и Навигатор на мобилке не влезут */
    .btn-glow.bvb, 
    .btn-glow.nvg {
        display: none !important; 
    }

    /* 6. КНОПКА МЕНЮ: Делаем компактной */
    .burger-trigger span {
        font-size: 0.7rem !important; /* Надпись МЕНЮ поменьше */
    }
    
    .login-link {
        font-size: 0.8rem !important;
    }
}