/* --- Variables & Reset --- */
:root {
    --bg-dark: #0f0f11;
    --bg-pearl: #e2e2e7;
    --accent: #6366f1;
    --text-light: #ffffff;
    --text-muted: #a1a1aa;
    --text-dark: #18181b;
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f0f11 0%, #1a1a1e 40%, #2a2a30 70%, #dcdce2 100%);
    background-attachment: fixed;
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    transition: var(--transition);
    border: none;
    font-size: 0.95rem;
}

.btn--outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-light);
}

.btn--outline:hover {
    background: var(--text-light);
    color: var(--text-dark);
    transform: translateY(-2px);
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.header--scrolled {
    background: rgba(15, 15, 17, 0.8);
    backdrop-filter: blur(15px);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo__icon {
    width: 32px;
    height: 32px;
    background: var(--accent);
    border-radius: 8px;
    position: relative;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.logo__icon::after {
    content: '';
    position: absolute;
    inset: 6px;
    border: 2px solid white;
    border-radius: 4px;
}

.nav__list {
    display: flex;
    gap: 32px;
}

.nav__link {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.nav__link:hover {
    color: var(--text-light);
}

.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* --- Footer --- */
.footer {
    background: #09090b;
    padding: 100px 0 40px;
    border-top: 1px solid var(--border);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer__logo {
    margin-bottom: 24px;
}

.footer__description {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 300px;
}

.footer__title {
    margin-bottom: 24px;
    font-size: 1.1rem;
    color: var(--text-light);
}

.footer__links li {
    margin-bottom: 12px;
}

.footer__links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer__links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer__contacts li {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    align-items: flex-start;
}

.icon-sm {
    width: 18px;
    color: var(--accent);
    flex-shrink: 0;
}

.footer__bottom {
    padding-top: 40px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* --- Mobile Adaptivity --- */
@media (max-width: 992px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .nav {
        display: none;
    }

    .burger {
        display: block;
    }
}

@media (max-width: 576px) {
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 120px;
    /* offset for header */
    overflow: hidden;
}

/* Фон "Цифровой водопад" */
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.15;
    /* Делаем фон очень тусклым, чтобы не мешал тексту */
    pointer-events: none;
    display: flex;
    justify-content: space-around;
}

.binary-column {
    color: var(--accent);
    font-family: monospace;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
    user-select: none;
}

.hero__container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero__content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent);
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    display: inline-block;
}

.hero__title {
    font-size: 4rem;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 24px;
    color: var(--text-light);
}

/* Стили для анимации букв при наведении */
.hero__title span {
    display: inline-block;
    cursor: default;
    transition: color 0.3s;
}

.hero__title span:hover {
    color: var(--accent);
}

.hero__subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 650px;
    margin-bottom: 48px;
    font-weight: 300;
}

.hero__actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.btn--primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn--primary:hover {
    background: #4f46e5;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5);
}

.btn--link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-weight: 600;
}

.btn--link:hover {
    color: var(--accent);
}

.btn--link:hover .icon-xs {
    transform: translateX(5px);
}

.icon-xs {
    width: 16px;
    transition: var(--transition);
}

/* Кнопка скролла вниз */
.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 40px;
    border: 2px solid var(--border);
    border-radius: 20px;
    z-index: 2;
    transition: var(--transition);
}

.scroll-down::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 2px;
    animation: scrollDownAnim 2s infinite;
}

.scroll-down:hover {
    border-color: var(--accent);
}

@keyframes scrollDownAnim {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 15px);
    }
}

/* --- Responsive for Hero --- */
@media (max-width: 992px) {
    .hero__title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero__title {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

    .hero__subtitle {
        font-size: 1.1rem;
    }

    .hero__actions {
        flex-direction: column;
        gap: 15px;
    }
}
/* --- Shared Section Styles --- */
.section-head {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--text-light);
}

.section-subtitle {
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* --- Courses --- */
.courses {
    padding: 120px 0;
    background: rgba(0, 0, 0, 0.2);
}

.courses__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.course-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

.course-card__image {
    height: 200px;
    position: relative;
    background: #1a1a1e;
}

.course-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.course-card__tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.course-card__content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-card__title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-light);
}

.course-card__text {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.course-card__info {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.course-card__info span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.course-card__info i {
    width: 16px;
    color: var(--accent);
}

.btn--full {
    width: 100%;
    text-align: center;
}

/* --- Features --- */
.features {
    padding: 120px 0;
}

.features__wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.features__list {
    margin-top: 40px;
}

.feature-item {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
}

.feature-item__icon {
    width: 54px;
    height: 54px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.features__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
}

.stat-card--accent {
    background: var(--accent);
    border-color: var(--accent);
}

.stat-card--accent .stat-card__number,
.stat-card--accent p {
    color: white;
}

.stat-card__number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 10px;
}

.stat-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

/* --- Mobile Adaptivity --- */
@media (max-width: 992px) {
    .features__wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .section-title {
        font-size: 2.2rem;
    }
}
/* --- Reviews --- */
.reviews {
    padding: 120px 0;
    background: rgba(255, 255, 255, 0.02);
}

.reviews-slider {
    padding: 40px 0 80px;
}

.review-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 40px;
    height: 100%;
    transition: var(--transition);
}

.review-card:hover {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

.review-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.review-card__user {
    display: flex;
    gap: 15px;
    align-items: center;
}

.review-card__avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background: #333;
}

.review-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-card__name {
    color: var(--text-light);
    font-size: 1.1rem;
}

.review-card__pos {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.review-card__quote {
    color: var(--accent);
    opacity: 0.3;
}

.review-card__text {
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 30px;
}

.review-card__rating {
    display: flex;
    gap: 5px;
    color: #fbbf24;
}

.review-card__rating i {
    width: 16px;
    fill: #fbbf24;
}

.swiper-pagination-bullet {
    background: var(--text-muted);
    opacity: 0.3;
}

.swiper-pagination-bullet-active {
    background: var(--accent);
    opacity: 1;
    width: 24px;
    border-radius: 4px;
    transition: 0.3s;
}

/* --- FAQ --- */
.faq {
    padding: 120px 0;
}

.faq__wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
}

.faq__cta {
    margin-top: 40px;
    padding: 30px;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 20px;
    border: 1px dashed var(--border);
}

.faq__cta p {
    margin-bottom: 15px;
    color: var(--text-muted);
}

.faq-item {
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.faq-item__trigger {
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
}

.faq-item__trigger i {
    transition: var(--transition);
    color: var(--accent);
    width: 20px;
}

.faq-item__content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0, 1, 0, 1);
    color: var(--text-muted);
    line-height: 1.7;
}

.faq-item__content p {
    padding-bottom: 25px;
}

.faq-item.active .faq-item__trigger {
    color: var(--accent);
}

.faq-item.active .faq-item__trigger i {
    transform: rotate(180deg);
}

.faq-item.active .faq-item__content {
    max-height: 500px;
    transition: all 0.5s cubic-bezier(1, 0, 1, 0);
}

/* --- Mobile Adaptivity --- */
@media (max-width: 992px) {
    .faq__wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
/* --- Mobile Menu --- */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu__list {
    text-align: center;
}

.mobile-menu__link {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-light);
}

.mobile-menu__link.btn {
    font-size: 1.2rem;
}

.mobile-menu__footer {
    position: absolute;
    bottom: 40px;
    text-align: center;
    color: var(--text-muted);
}

/* --- Contact Section --- */
.contact {
    padding: 120px 0;
    position: relative;
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.contact__details {
    margin-top: 40px;
}

.contact__item {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.contact__icon {
    color: var(--accent);
}

.contact-form {
    background: var(--glass);
    padding: 50px;
    border-radius: 32px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.form-group {
    margin-bottom: 20px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"] {
    width: 100%;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: white;
    outline: none;
    transition: var(--transition);
}

.contact-form input:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}

.form-captcha {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.form-captcha input {
    width: 80px;
    text-align: center;
}

.form-checkbox {
    display: flex;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    cursor: pointer;
}

.form-checkbox a {
    color: var(--accent);
    text-decoration: underline;
}

.form-message {
    position: absolute;
    inset: 0;
    background: #18181b;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    z-index: 5;
}

.form-message i {
    width: 64px;
    height: 64px;
    color: #10b981;
    margin-bottom: 20px;
}

/* --- Cookie Popup --- */
.cookie-popup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    max-width: 400px;
    background: rgba(24, 24, 27, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    padding: 25px;
    border-radius: 20px;
    z-index: 3000;
    transform: translateY(200%);
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.cookie-popup.visible {
    transform: translateY(0);
}

.cookie-popup__content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.cookie-popup__content a {
    color: var(--accent);
}

.btn--sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

@media (max-width: 992px) {
    .contact__grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-form {
        padding: 30px;
    }
}
/* Базовые стили (дополни к существующим) */
.features__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Адаптив для мобильных (до 768px) */
@media (max-width: 768px) {
    .features__stats {
        grid-template-columns: 1fr;
        /* Переключаем на одну колонку */
        gap: 15px;
        margin-top: 40px;
        /* Отступ от текстового блока выше */
    }

    .stat-card {
        padding: 30px 20px;
        /* Уменьшаем внутренние отступы */
        display: flex;
        flex-direction: row;
        /* На мобилках лучше смотрится в ряд: Число | Текст */
        align-items: center;
        justify-content: flex-start;
        gap: 20px;
        text-align: left;
    }

    .stat-card__number {
        font-size: 2.2rem;
        /* Немного уменьшаем шрифт */
        margin-bottom: 0;
        min-width: 80px;
        /* Фиксируем ширину числа для ровного выравнивания */
    }

    .stat-card p {
        font-size: 0.85rem;
        line-height: 1.3;
        max-width: 150px;
        /* Ограничиваем ширину текста */
    }

    /* Акцентная карточка на мобильном */
    .stat-card--accent {
        transform: none;
        /* Убираем возможные вылеты за края */
    }
}

/* Для самых маленьких экранов (до 480px) */
@media (max-width: 480px) {
    .stat-card {
        padding: 20px;
        gap: 15px;
    }

    .stat-card__number {
        font-size: 1.8rem;
        min-width: 65px;
    }
}
/* --- Burger Icon Styles --- */
.burger {
    display: none;
    width: 30px;
    height: 20px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2001;
    /* Поверх меню */
}

.burger span,
.burger::before,
.burger::after {
    content: '';
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--text-light);
    transition: var(--transition);
    left: 0;
}

.burger::before {
    top: 0;
}

.burger span {
    top: 50%;
    transform: translateY(-50%);
}

.burger::after {
    bottom: 0;
}

/* Анимация в крестик при активации */
.burger.active span {
    opacity: 0;
}

.burger.active::before {
    top: 50%;
    transform: rotate(45deg) translateY(-50%);
}

.burger.active::after {
    bottom: 50%;
    transform: rotate(-45deg) translateY(50%);
}

@media (max-width: 992px) {
    .burger {
        display: block;
    }
}

/* Запрет скролла при открытом меню */
body.no-scroll {
    overflow: hidden;
}
/* --- Contact Cards Styling --- */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.contact-card {
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 32px;
    transition: var(--transition);
    text-align: center;
}

.contact-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

.contact-card__icon {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.contact-card__icon i {
    width: 30px;
    height: 30px;
}

.contact-card h2 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-light);
}

.contact-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    min-height: 50px;
}

.contact-link {
    font-weight: 700;
    color: var(--accent);
    font-size: 1.1rem;
}

.contact-address {
    font-style: normal;
    color: var(--text-light);
    line-height: 1.6;
    font-weight: 600;
}

.contact-extra {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
}

.contact-extra a {
    color: var(--accent);
    text-decoration: underline;
}

/* Адаптив для карточек */
@media (max-width: 768px) {
    .contact-card {
        padding: 30px 20px;
    }
}
.custom-list {
    list-style: none;
    counter-reset: item;
    margin: 30px 0;
}

.custom-list li {
    counter-increment: item;
    margin-bottom: 20px;
    padding-left: 50px;
    position: relative;
    color: var(--text-muted);
}

.custom-list li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: -5px;
    width: 32px;
    height: 32px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}