/* STAGE 0: GLOBAL STYLES */
:root {
    --bg-color: #05070A;
    --text-color: #E2E8F0;
    --accent-primary: #8B5CF6;
    --accent-secondary: #06B6D4;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.btn {
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn--outline {
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: white;
    backdrop-filter: blur(10px);
}

.btn--outline:hover {
    background: white;
    color: black;
    transform: translateY(-2px);
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.logo__dot {
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-primary);
}

/* STAGE 1: HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.header--scrolled {
    padding: 12px 0;
    background: rgba(5, 7, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__list {
    display: flex;
    gap: 32px;
}

.nav__link {
    font-size: 0.95rem;
    font-weight: 400;
    opacity: 0.7;
}

.nav__link:hover {
    opacity: 1;
    color: var(--accent-secondary);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* STAGE 2: FOOTER */
.footer {
    background: #090B11;
    padding: 80px 0 40px;
    border-top: 1px solid var(--glass-border);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer__description {
    margin-top: 20px;
    opacity: 0.6;
    max-width: 300px;
}

.footer__title {
    font-family: 'Syne', sans-serif;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.footer__links li {
    margin-bottom: 12px;
}

.footer__links a {
    opacity: 0.6;
}

.footer__links a:hover {
    opacity: 1;
    padding-left: 5px;
    color: var(--accent-primary);
}

.footer__contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    opacity: 0.8;
}

.icon-sm {
    width: 18px;
    height: 18px;
    color: var(--accent-secondary);
}

.footer__bottom {
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.4;
}

/* MOBILE RESPONSIVE */
@media (max-width: 992px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-color);
        padding: 100px 40px;
        transition: 0.5s;
        border-left: 1px solid var(--glass-border);
    }
    .nav--active {
        right: 0;
    }
    .nav__list {
        flex-direction: column;
        gap: 24px;
    }
    .burger {
        display: block;
        width: 30px;
        height: 20px;
        position: relative;
    }
    .burger span, .burger::before, .burger::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 2px;
        background: white;
        transition: var(--transition);
    }
    .burger::before { top: 0; }
    .burger span { top: 50%; transform: translateY(-50%); }
    .burger::after { bottom: 0; }
    
    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer__grid {
        grid-template-columns: 1fr;
    }
    .header__actions .btn {
        display: none;
    }
}
/* =========================
   STAGE 3: HERO SECTION
   ========================= */
   .hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 60px;
    overflow: hidden;
}

/* Фоновое пульсирующее свечение */
.hero__bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(5, 7, 10, 0) 70%);
    opacity: 0.8;
    filter: blur(60px);
    animation: pulseGlow 8s ease-in-out infinite alternate;
    z-index: -1;
}

@keyframes pulseGlow {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

.hero__container {
    display: flex;
    justify-content: center;
    text-align: center;
}

.hero__content {
    max-width: 800px;
}

.hero__title {
    font-family: 'Syne', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

/* Цвет меняющегося текста */
.hero__highlight .ti-cursor {
    color: var(--accent-secondary);
}
.hero__highlight {
    color: var(--accent-secondary);
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__subtitle {
    font-size: 1.1rem;
    opacity: 0.7;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Основная кнопка (которой не было в глобальных стилях) */
.btn--primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 10px 20px -10px rgba(139, 92, 246, 0.5);
    border: none;
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -15px rgba(139, 92, 246, 0.7);
}

/* Адаптив для Hero */
@media (max-width: 768px) {
    .hero__title {
        font-size: 2.2rem;
    }
    .hero__subtitle {
        font-size: 1rem;
    }
    .hero__actions {
        flex-direction: column;
        gap: 16px;
    }
    .btn {
        width: 100%;
        text-align: center;
    }
    .hero__bg-glow {
        width: 90vw;
        height: 90vw;
    }
}
/* =========================
   STAGE 3: HERO (Update Background)
   ========================= */
   .hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 60px;
    background-color: #05070A;
    /* Фоновое изображение через placeholder с оверлеем */
    background-image: 
        linear-gradient(to bottom, rgba(5, 7, 10, 0.8), rgba(5, 7, 10, 0.9)),
        url('/img/one.jpg'); 
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* Эффект сетки поверх фона */
.hero__overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--glass-border) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, black, transparent 80%);
    pointer-events: none;
}

/* =========================
   STAGE 3.1: ABOUT (Text Only)
   ========================= */
.about {
    padding: 140px 0;
    background: var(--bg-color);
}

.about__wrapper {
    max-width: 900px;
}

.about__label {
    display: inline-block;
    font-family: 'Syne', sans-serif;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: var(--accent-primary);
    margin-bottom: 24px;
}

.about__title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 48px;
    font-weight: 800;
}

.about__lead {
    font-size: 1.5rem;
    line-height: 1.4;
    color: white;
    margin-bottom: 40px;
    font-weight: 300;
}

.about__grid-text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    opacity: 0.7;
    font-size: 1.1rem;
}

/* Адаптив для About */
@media (max-width: 768px) {
    .about {
        padding: 80px 0;
    }
    .about__grid-text {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .about__lead {
        font-size: 1.2rem;
    }
}
/* =========================
   STAGE 3.2: COURSES
   ========================= */
   .courses {
    padding: 100px 0;
    background: #05070A;
}

.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.section-label {
    display: inline-block;
    font-family: 'Syne', sans-serif;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: var(--accent-secondary);
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
}

.courses__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.course-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 24px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Эффект свечения при наведении */
.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.1), transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.course-card:hover {
    transform: translateY(-10px);
    border-color: rgba(139, 92, 246, 0.4);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}

.course-card:hover::before {
    opacity: 1;
}

.course-card__icon {
    width: 54px;
    height: 54px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--accent-primary);
    transition: var(--transition);
}

.course-card:hover .course-card__icon {
    background: var(--accent-primary);
    color: white;
    transform: rotate(-5deg) scale(1.1);
}

.course-card__title {
    font-family: 'Syne', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.course-card__text {
    opacity: 0.6;
    font-size: 0.95rem;
    margin-bottom: 30px;
    flex-grow: 1;
}

.course-card__link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent-secondary);
}

.course-card__link i {
    width: 16px;
    transition: var(--transition);
}

.course-card:hover .course-card__link i {
    transform: translateX(5px);
}

/* Mobile First Responsive */
@media (max-width: 992px) {
    .courses__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .courses__grid {
        grid-template-columns: 1fr;
    }
    .course-card {
        padding: 30px;
    }
}
/* =========================
   STAGE 3.3: TECH (Marquee)
   ========================= */
   .tech {
    padding: 100px 0;
    background: #05070A;
    overflow: hidden; /* Скрываем выходящие за пределы иконки */
}

.tech__marquee {
    margin-top: 40px;
    display: flex;
    user-select: none;
    gap: 40px;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.tech__track {
    display: flex;
    align-items: center;
    gap: 60px;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Остановка при наведении для удобства чтения */
.tech__marquee:hover .tech__track {
    animation-play-state: paused;
}

.tech__item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: white;
    opacity: 0.4;
    transition: var(--transition);
}

.tech__item i {
    width: 32px;
    height: 32px;
    color: var(--accent-secondary);
}

.tech__item:hover {
    opacity: 1;
    color: var(--accent-secondary);
}

.tech__footer {
    margin-top: 50px;
    text-align: center;
}

.tech__tagline {
    font-size: 1.1rem;
    color: var(--accent-primary);
    font-weight: 600;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Адаптив */
@media (max-width: 768px) {
    .tech__item {
        font-size: 1.2rem;
    }
    .tech__track {
        gap: 40px;
        animation-duration: 20s; /* На мобильных чуть быстрее, т.к. путь короче */
    }
}
/* =========================
   STAGE 3.4: COMMUNITY
   ========================= */
   .community {
    padding: 120px 0;
    background: #05070A;
    position: relative;
}

.community__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    gap: 30px;
}

/* Статистика */
.community__stats {
    grid-column: 1 / 6;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), transparent);
    border: 1px solid var(--glass-border);
    padding: 60px 40px;
    border-radius: 32px;
}

.stats__number {
    font-family: 'Syne', sans-serif;
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
    margin: 20px 0;
    color: white;
    display: flex;
    align-items: center;
}

.stats__desc {
    font-size: 1.2rem;
    opacity: 0.6;
}

/* Цитаты */
.community__quote {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 24px;
    position: relative;
    backdrop-filter: blur(10px);
}

.quote__icon {
    position: absolute;
    top: -20px;
    left: 40px;
    background: var(--accent-primary);
    padding: 10px;
    border-radius: 12px;
    width: 40px;
    height: 40px;
    color: white;
}

.quote-main {
    grid-column: 6 / 13;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quote-main .quote__text {
    font-size: 2rem;
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 20px;
}

.quote-side {
    grid-column: 6 / 10;
    margin-top: -20px; /* Наслоение */
}

.quote-side .quote__text {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 15px;
}

.quote__author {
    font-family: 'Syne', sans-serif;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--accent-secondary);
}

/* Бейдж */
.community__badge {
    grid-column: 10 / 13;
    background: var(--accent-primary);
    padding: 30px;
    border-radius: 24px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    text-align: center;
    transform: rotate(3deg);
}

.badge__icon i {
    width: 40px;
    height: 40px;
}

/* Адаптив */
@media (max-width: 992px) {
    .community__grid {
        display: flex;
        flex-direction: column;
    }
    .community__badge {
        transform: rotate(0);
    }
    .stats__number {
        font-size: 4rem;
    }
    .quote-main .quote__text {
        font-size: 1.5rem;
    }
}
/* =========================
   STAGE 4: CONTACTS
   ========================= */
   .contact {
    padding: 120px 0;
    background: radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.contact__text {
    opacity: 0.7;
    margin: 24px 0 40px;
    font-size: 1.1rem;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact__item {
    display: flex;
    gap: 20px;
    align-items: center;
}

.contact__icon {
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-secondary);
}

.contact__label {
    display: block;
    font-size: 0.8rem;
    opacity: 0.5;
    text-transform: uppercase;
}

.contact__link {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Стили формы */
.contact__form-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 32px;
    backdrop-filter: blur(20px);
}

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

.contact__form input[type="text"],
.contact__form input[type="email"],
.contact__form input[type="tel"] {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-family: inherit;
    transition: var(--transition);
}

.contact__form input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(139, 92, 246, 0.05);
}

/* Капча */
.form-captcha {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    background: rgba(139, 92, 246, 0.05);
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
}

.form-captcha input {
    width: 60px;
    background: none;
    border: none;
    border-bottom: 2px solid var(--accent-secondary);
    color: white;
    text-align: center;
}

/* Чекбокс */
.form-consent {
    margin-bottom: 30px;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.85rem;
    opacity: 0.7;
}

.btn--full {
    width: 100%;
    padding: 18px;
    font-size: 1rem;
}

/* Сообщение об успехе */
.form-message {
    display: none; /* Скрыто по умолчанию */
    margin-top: 25px;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

.success-message {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid #22c55e;
    color: #4ade80;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 992px) {
    .contact__grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

/* =========================
   STAGE 5: COOKIE & UI EXTRAS
   ========================= */

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: -100%; /* Скрыт по умолчанию */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    z-index: 2000;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-popup--active {
    bottom: 30px;
}

.cookie-popup__content {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 20px 24px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.cookie-popup__icon {
    color: var(--accent-secondary);
    flex-shrink: 0;
}

.cookie-popup__text {
    font-size: 0.85rem;
    line-height: 1.4;
    opacity: 0.9;
}

.cookie-popup__text a {
    color: var(--accent-primary);
    text-decoration: underline;
}

.btn--sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

/* Burger Animation */
.burger--active span {
    background: transparent;
}
.burger--active::before {
    top: 50% !important;
    transform: translateY(-50%) rotate(45deg);
}
.burger--active::after {
    bottom: 50% !important;
    transform: translateY(50%) rotate(-45deg);
}

/* Body lock on mobile menu */
body.lock {
    overflow: hidden;
}
/* =========================
   STAGE 5: LEGAL & PAGES STYLES
   ========================= */
   .pages {
    padding: 160px 0 100px; /* Отступ под фиксированный хедер */
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.03), transparent 40%);
    min-height: 80vh;
}

.pages .container {
    max-width: 800px; /* Узкая колонка для удобства чтения */
}

.pages h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.6rem, 4vw, 4rem);
    font-weight: 800;
    margin-bottom: 40px;
    background: linear-gradient(135deg, white, var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pages h2 {
    font-family: 'Syne', sans-serif;
    font-size: 1.4rem;
    margin: 60px 0 20px;
    color: var(--accent-secondary);
    border-left: 3px solid var(--accent-primary);
    padding-left: 20px;
}

.pages p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(226, 232, 240, 0.8);
    margin-bottom: 24px;
}

.pages strong {
    color: white;
}

.pages ul {
    margin-bottom: 30px;
}

.pages li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: rgba(226, 232, 240, 0.8);
}

.pages li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 8px;
    height: 2px;
    background: var(--accent-primary);
}

.pages a {
    color: var(--accent-secondary);
    text-decoration: underline;
    text-underline-offset: 4px;
}

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

@media (max-width: 768px) {
    .pages {
        padding-top: 120px;
    }
}