/* --- GLOBAL STYLES & VARIABLES --- */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --accent: #10b981;
    --dark: #0f172a;
    --light: #ffffff;
    --gray-bg: #f8f9fa;
    --text: #334155;
    --text-muted: #64748b;
    --container: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--light);
}

h1,
h2,
h3,
h4,
.logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    color: var(--dark);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn--primary {
    background: var(--primary);
    color: white;
}

.btn--primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

/* --- HEADER --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.header--scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo__dot {
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 3px;
    display: inline-block;
}

.nav__list {
    display: flex;
    gap: 32px;
}

.nav__link {
    font-weight: 500;
    font-size: 15px;
    color: var(--text);
}

.nav__link:hover {
    color: var(--primary);
}

.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* --- FOOTER --- */
.footer {
    background: var(--gray-bg);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer__logo {
    margin-bottom: 20px;
}

.footer__text {
    color: var(--text-muted);
    max-width: 280px;
}

.footer__title {
    margin-bottom: 24px;
    font-size: 18px;
}

.footer__links li {
    margin-bottom: 12px;
}

.footer__links a {
    color: var(--text-muted);
}

.footer__links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text-muted);
}

.icon-sm {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.footer__bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

/* --- MOBILE ADAPTIVE --- */
@media (max-width: 992px) {
    .nav {
        display: none;
    }

    .burger {
        display: block;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
/* ... (предыдущие стили без изменений) ... */

/* --- ADDITIONAL GLOBAL STYLES --- */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn--lg {
    padding: 16px 36px;
    font-size: 16px;
    gap: 10px;
}

.btn--secondary {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.btn--secondary:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

.icon-md {
    width: 20px;
    height: 20px;
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--light);
    /* Hero на белом фоне */
}

.hero__3d {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Фон */
    opacity: 0.8;
}

.hero__container {
    position: relative;
    z-index: 10;
    /* Поверх 3D */
    display: flex;
    justify-content: center;
    text-align: center;
}

.hero__content {
    max-width: 850px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.hero__title {
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero__text {
    font-size: clamp(16px, 1.5vw, 20px);
    color: var(--text-muted);
    margin-bottom: 48px;
    max-width: 650px;
    line-height: 1.6;
}

.hero__actions {
    display: flex;
    gap: 20px;
}

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 14px;
    z-index: 10;
    transition: var(--transition);
}

.hero__scroll:hover {
    color: var(--primary);
    bottom: 35px;
}

.hero__scroll i {
    animation: scrollMouse 2s infinite;
}

/* Анимация мышки */
@keyframes scrollMouse {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(6px);
        opacity: 0.5;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* --- MOBILE ADAPTIVE (Дополнение) --- */
@media (max-width: 768px) {
    .hero__actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }
}
/* --- SECTION GENERAL --- */
.section {
    padding: 120px 0;
}

.section--gray {
    background-color: var(--gray-bg);
}

.section__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section__subtitle {
    display: block;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section__title {
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 20px;
    line-height: 1.2;
}

.section__description {
    color: var(--text-muted);
}

/* --- COURSES SECTION --- */
.courses__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.course-card {
    background: var(--light);
    padding: 40px;
    border-radius: 24px;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.course-card--featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1);
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.course-card__icon {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.course-card__icon i {
    width: 30px;
    height: 30px;
}

.course-card__title {
    font-size: 24px;
    margin-bottom: 16px;
}

.course-card__text {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 24px;
    flex-grow: 1;
}

.course-card__list {
    margin-bottom: 30px;
}

.course-card__list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--dark);
    font-weight: 500;
}

.course-card__list i {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

.course-card__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    color: var(--primary);
}

/* --- TECH SECTION --- */
.tech__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.tech__image {
    position: relative;
}

.tech__blob-wrapper {
    position: relative;
    width: 100%;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech__blob {
    position: absolute;
    width: 80%;
    height: 80%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    filter: blur(40px);
    animation: blobAnimation 10s infinite alternate;
}

@keyframes blobAnimation {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    100% {
        border-radius: 50% 50% 20% 80% / 25% 80% 20% 75%;
    }
}

.tech__img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 32px;
}

.floating-card {
    position: absolute;
    z-index: 3;
    background: white;
    padding: 16px 24px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

.floating-card--1 {
    top: 10%;
    right: -20px;
}

.floating-card--2 {
    bottom: 10%;
    left: -20px;
}

.tech-item {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.tech-item:last-child {
    border-bottom: none;
}

.tech-item__number {
    font-family: 'Syne', sans-serif;
    font-size: 24px;
    color: var(--primary);
    opacity: 0.3;
    font-weight: 800;
}

.tech-item h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.tech-item p {
    color: var(--text-muted);
    font-size: 15px;
}

/* --- MOBILE --- */
@media (max-width: 992px) {
    .tech__container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .course-card--featured {
        transform: scale(1);
    }

    .tech__image {
        order: 2;
    }
}
/* --- ABOUT SECTION --- */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about__text {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 17px;
}

.about__stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item__number {
    font-size: 40px;
    display: inline-block;
    color: var(--dark);
}

.stat-item__suffix {
    font-size: 24px;
    color: var(--primary);
    font-weight: 800;
}

.stat-item__text {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.about__visual {
    position: relative;
}

.about__img {
    width: 100%;
    border-radius: 40px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
}

.experience-badge {
    position: absolute;
    top: -20px;
    left: -20px;
    background: var(--primary);
    color: white;
    padding: 24px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

.experience-badge__year {
    font-family: 'Syne', sans-serif;
    font-size: 28px;
    font-weight: 800;
}

.experience-badge__text {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

/* --- FAQ SECTION --- */
.faq__list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 8px;
}

.faq-item__trigger {
    width: 100%;
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Syne', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    text-align: left;
    transition: var(--transition);
}

.faq-item__trigger:hover {
    color: var(--primary);
}

.faq-item__trigger i {
    transition: transform 0.4s ease;
    color: var(--primary);
}

.faq-item__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}

.faq-item__content p {
    padding-bottom: 24px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* State when active */
.faq-item.active .faq-item__content {
    max-height: 1000px;
    transition: max-height 0.4s cubic-bezier(1, 0, 1, 0);
}

.faq-item.active .faq-item__trigger i {
    transform: rotate(45deg);
}

/* --- MOBILE --- */
@media (max-width: 992px) {
    .about__grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about__visual {
        order: -1;
    }

    .about__stats {
        justify-content: space-between;
    }
}
/* --- MOBILE MENU --- */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu__list {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mobile-link {
    font-family: 'Syne', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
}

/* Burger Animation */
.burger.active span {
    background: transparent;
}

.burger.active span::before {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span::after {
    transform: rotate(-45deg) translate(5px, -5px);
}

.burger span,
.burger span::before,
.burger span::after {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--dark);
    transition: var(--transition);
    position: relative;
}

.burger span::before,
.burger span::after {
    content: '';
    position: absolute;
}

.burger span::before {
    top: -8px;
}

.burger span::after {
    bottom: -8px;
}

/* --- CONTACT SECTION --- */
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 100px;
    align-items: center;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-top: 32px;
}

.contact-item__icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 32px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    padding: 16px 24px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: var(--gray-bg);
    font-family: inherit;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-captcha {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
}

.form-captcha input {
    width: 100px;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    margin-bottom: 30px;
}

.btn--full {
    width: 100%;
    justify-content: center;
}

.form-success {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 32px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

@media (max-width: 992px) {
    .contact__grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}
/* --- COOKIE POPUP --- */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 24px;
    right: 24px;
    background: white;
    z-index: 2000;
    padding: 24px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transition: bottom 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 500px;
}

.cookie-popup.active {
    bottom: 24px;
}

.cookie-popup__content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cookie-popup__icon {
    width: 48px;
    height: 48px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cookie-popup__text {
    font-size: 14px;
    color: var(--text-muted);
}

.cookie-popup__text a {
    color: var(--primary);
    text-decoration: underline;
}

/* --- LEGAL PAGES STYLES (Fixed Structure) --- */
main section.pages {
    padding: 160px 0 100px;
    background: var(--light);
    min-height: 80vh;
}

section.pages h1 {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 40px;
    color: var(--dark);
}

section.pages h2 {
    font-size: 24px;
    margin: 40px 0 20px;
    color: var(--dark);
}

section.pages p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 20px;
}

section.pages ul {
    margin-bottom: 24px;
    padding-left: 20px;
}

section.pages ul li {
    list-style: disc;
    margin-bottom: 12px;
    color: var(--text-muted);
}

@media (max-width: 576px) {
    .cookie-popup__content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-popup {
        left: 16px;
        right: 16px;
        width: calc(100% - 32px);
    }
}
.hero {
    position: relative;
    overflow: hidden;
    height: 100vh;
}

#three-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Фон снизу */
    pointer-events: none;
    /* Чтобы клики проходили сквозь него к кнопкам */
}

.hero__container {
    position: relative;
    z-index: 10;
    /* Контент сверху */
}
/* --- CONTACT PAGE SPECIFIC --- */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.contact-card {
    background: var(--light);
    padding: 40px;
    border-radius: 32px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
}

.contact-card__icon {
    width: 56px;
    height: 56px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.contact-card__icon i {
    width: 28px;
    height: 28px;
}

.contact-card__title {
    font-size: 24px;
    margin-bottom: 16px;
}

.contact-card__text {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.contact-card__link {
    font-weight: 700;
    color: var(--primary);
    font-size: 18px;
    word-break: break-all;
}

.contact-card__address {
    font-style: normal;
    color: var(--dark);
    font-weight: 500;
    line-height: 1.6;
}

.contact-extra {
    text-align: center;
    padding: 40px;
    background: var(--gray-bg);
    border-radius: 24px;
    border: 1px dashed rgba(99, 102, 241, 0.3);
}

.contact-extra p {
    margin-bottom: 0;
    font-weight: 500;
}

@media (max-width: 768px) {
    .contact-card {
        padding: 30px;
        align-items: center;
        text-align: center;
    }

    .contact-card__icon {
        margin-left: auto;
        margin-right: auto;
    }
}