:root {
    --bg-color: #0A0A0A;
    --text-color: #FFFFFF;
    --accent-color: #FF0000;
    --secondary-bg: #141414;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo {
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 14px 28px;
    background: var(--accent-color);
    color: #fff;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.btn:hover {
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
    transform: translateY(-2px);
}

/* Header */
.header {
    padding: 20px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo__dot {
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    display: inline-block;
}

.nav__list {
    display: flex;
    gap: 30px;
}

.nav__link:hover {
    color: var(--accent-color);
}

/* Footer */
.footer {
    background: var(--secondary-bg);
    padding: 80px 0 40px;
    margin-top: 100px;
    border-top: 2px solid var(--accent-color);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer__title {
    margin-bottom: 25px;
    font-size: 18px;
    color: var(--accent-color);
}

.footer__links li {
    margin-bottom: 12px;
}

.footer__links a:hover {
    padding-left: 5px;
    color: var(--accent-color);
}

.footer__contacts li {
    margin-bottom: 15px;
    font-size: 14px;
    opacity: 0.8;
}

.footer__bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 12px;
    opacity: 0.5;
}

/* Mobile */
@media (max-width: 992px) {
    .nav {
        display: none;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer__grid {
        grid-template-columns: 1fr;
    }
}
/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    background: radial-gradient(circle at 10% 20%, rgba(255, 0, 0, 0.05) 0%, transparent 50%);
}

.hero__container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 40px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid var(--accent-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}

.hero__title {
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero__title--accent {
    color: var(--accent-color);
    -webkit-text-stroke: 1px var(--accent-color);
    background: linear-gradient(90deg, var(--accent-color), #ff5555);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__subtitle {
    font-size: 18px;
    opacity: 0.7;
    max-width: 540px;
    margin-bottom: 35px;
}

.hero__actions {
    display: flex;
    gap: 20px;
}

.btn--outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn--outline:hover {
    border-color: var(--accent-color);
}

/* Hero Visual & Code Card */
.hero__visual {
    position: relative;
}

.hero__card {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.hero__card-header {
    background: #1a1a1a;
    padding: 12px 15px;
    display: flex;
    gap: 8px;
}

.hero__card-header span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-r {
    background: #ff5f56;
}

.dot-y {
    background: #ffbd2e;
}

.dot-g {
    background: #27c93f;
}

.hero__card-body {
    padding: 30px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.code-keyword {
    color: #c678dd;
}

.code-string {
    color: #98c379;
}

.code-func {
    color: #61afef;
}

.decor-square {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid var(--accent-color);
    top: -20px;
    right: -20px;
    z-index: 1;
}

/* Mobile Adaptive */
@media (max-width: 992px) {
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__subtitle {
        margin: 0 auto 35px;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__visual {
        margin-top: 50px;
    }
}
/* Courses Section */
.courses {
    padding: 100px 0;
    background: #0c0c0c;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    margin-bottom: 15px;
}

.section-subtitle {
    opacity: 0.6;
    max-width: 600px;
    margin: 0 auto;
}

.text-red {
    color: var(--accent-color);
}

.courses__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.course-card {
    background: var(--secondary-bg);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.course-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-10px);
}

.course-card__icon {
    font-size: 32px;
    color: var(--accent-color);
    margin-bottom: 25px;
}

.course-card__title {
    margin-bottom: 15px;
    font-size: 22px;
}

.course-card__text {
    opacity: 0.7;
    font-size: 15px;
    margin-bottom: 30px;
}

.course-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.course-card__duration {
    font-size: 13px;
    opacity: 0.5;
    text-transform: uppercase;
}

.course-card__link {
    color: var(--accent-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.course-card__glow {
    position: absolute;
    width: 100px;
    height: 100px;
    background: var(--accent-color);
    filter: blur(80px);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.course-card:hover .course-card__glow {
    opacity: 0.2;
}
/* Mentors Section */
.mentors {
    padding: 100px 0;
    position: relative;
}

.mentors__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.mentor-card {
    background: transparent;
    text-align: center;
    group;
}

.mentor-card__img-wrapper {
    position: relative;
    margin-bottom: 25px;
    padding: 10px;
    border: 1px solid rgba(255, 0, 0, 0.3);
    transition: var(--transition);
}

.mentor-card:hover .mentor-card__img-wrapper {
    border-color: var(--accent-color);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.2);
}

.mentor-card__img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    filter: grayscale(100%);
    transition: var(--transition);
}

.mentor-card:hover .mentor-card__img {
    filter: grayscale(0%);
}

.mentor-card__badge {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: white;
    padding: 5px 15px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.mentor-card__name {
    font-size: 20px;
    margin-bottom: 5px;
}

.mentor-card__role {
    color: var(--accent-color);
    font-size: 14px;
    margin-bottom: 15px;
}

.mentor-card__socials {
    display: flex;
    justify-content: center;
    gap: 10px;
    opacity: 0.5;
    font-size: 12px;
}
/* About Section */
.about {
    padding: 120px 0;
    background: linear-gradient(to bottom, #0a0a0a, #0f0f0f);
}

.about__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.about__text {
    margin: 25px 0;
    opacity: 0.8;
    font-size: 18px;
}

.about__list {
    margin-bottom: 30px;
}

.about__list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-weight: 500;
}

.about__list i {
    color: var(--accent-color);
}

.about__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    background: #161616;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-card--featured {
    grid-column: span 2;
    background: var(--accent-color);
    color: white;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
}

.stat-number {
    font-size: 48px;
    font-family: 'Space Grotesk';
    color: var(--accent-color);
    font-weight: 700;
}

.stat-card--featured .stat-desc {
    color: white;
    opacity: 1;
    margin: 0;
}

.stat-desc {
    font-size: 14px;
    opacity: 0.6;
    margin-top: 10px;
}

@media (max-width: 992px) {
    .about__grid {
        grid-template-columns: 1fr;
    }
}
/* FAQ Section */
.faq {
    padding: 100px 0;
}

.container--narrow {
    max-width: 800px;
}

.faq__item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.faq__question {
    padding: 25px 0;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq__item:hover .faq__question {
    color: var(--accent-color);
}

.faq__answer {
    height: 0;
    overflow: hidden;
    opacity: 0;
    padding-bottom: 0;
    transition: var(--transition);
    font-size: 16px;
    opacity: 0.7;
}

.faq__item.active .faq__answer {
    height: auto;
    padding-bottom: 25px;
    opacity: 1;
}

.faq__item.active .faq__icon {
    transform: rotate(45deg);
    color: var(--accent-color);
}

.faq__icon {
    transition: var(--transition);
    font-size: 24px;
}
/* Contact Section */
.contact {
    padding: 120px 0;
    background: #070707;
}

.contact__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    background: #111;
    padding: 60px;
    border-left: 4px solid var(--accent-color);
}

.contact__details {
    margin-top: 40px;
    display: grid;
    gap: 20px;
}

.contact__item span {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 5px;
    opacity: 0.5;
}

.contact__item p {
    font-size: 20px;
    font-weight: 600;
}

.form {
    display: grid;
    gap: 20px;
}

.form__input {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    color: white;
    transition: var(--transition);
    font-family: inherit;
}

.form__input:focus {
    border-color: var(--accent-color);
    outline: none;
    background: #222;
}

.form__captcha {
    background: #0a0a0a;
    padding: 15px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

.form__captcha label {
    font-size: 14px;
    display: block;
    margin-bottom: 10px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    opacity: 0.6;
    cursor: pointer;
}

.btn--form {
    width: 100%;
    padding: 18px;
}

.form__message {
    margin-top: 20px;
    padding: 15px;
    display: none;
    text-align: center;
    font-weight: 600;
}

.form__message.success {
    background: rgba(39, 201, 63, 0.1);
    color: #27c93f;
    display: block;
}

.form__message.error {
    background: rgba(255, 0, 0, 0.1);
    color: var(--accent-color);
    display: block;
}

@media (max-width: 992px) {
    .contact__wrapper {
        grid-template-columns: 1fr;
        padding: 30px;
    }
}
/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    left: 30px;
    background: #1a1a1a;
    border: 1px solid var(--accent-color);
    padding: 20px;
    z-index: 2000;
    display: none;
    /* Управляется через JS */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.cookie-popup__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.cookie-popup p {
    font-size: 14px;
    opacity: 0.8;
}

.cookie-popup a {
    color: var(--accent-color);
    text-decoration: underline;
}

.btn--cookie {
    padding: 8px 20px;
    font-size: 12px;
}

/* Mobile Menu & Burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2001;
}

.burger span {
    width: 30px;
    height: 2px;
    background: var(--text-color);
    transition: var(--transition);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg-color);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav__list {
    text-align: center;
}

.mobile-nav__link {
    font-size: 32px;
    font-family: 'Space Grotesk';
    display: block;
    margin-bottom: 20px;
}

/* Стили для юридических страниц (Этап 5.2) */
.pages {
    padding: 150px 0 100px;
    line-height: 1.8;
}

.pages h1 {
    color: var(--accent-color);
    margin-bottom: 40px;
    font-size: 48px;
}

.pages h2 {
    margin: 30px 0 15px;
    font-size: 24px;
    border-left: 3px solid var(--accent-color);
    padding-left: 15px;
}

.pages p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.pages ul {
    margin-bottom: 20px;
    padding-left: 20px;
    list-style: square;
    color: var(--accent-color);
}

.pages ul li {
    color: var(--text-color);
    margin-bottom: 10px;
}

@media (max-width: 992px) {
    .burger {
        display: flex;
    }

    .cookie-popup__content {
        flex-direction: column;
        text-align: center;
    }
}
/* Нужно для Anime.js, чтобы работали трансформации (translate/rotate) */
.letter-block {
    display: inline-block;
    will-change: transform, opacity;
}

/* Фикс для мобильного скролла */
body.no-scroll {
    overflow: hidden;
}

/* Плавный переход для стики-хедера */
.header--scrolled {
    padding: 10px 0 !important;
    background: rgba(10, 10, 10, 0.98) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.contact-card {
    background: var(--secondary-bg);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.contact-card__icon {
    color: var(--accent-color);
    margin-bottom: 20px;
}

.contact-card h2 {
    font-size: 20px;
    margin-bottom: 15px;
}

.contact-link {
    display: inline-block;
    margin-top: 15px;
    font-weight: 700;
    color: var(--accent-color);
    font-size: 18px;
}

.contact-address {
    font-style: normal;
    margin-top: 15px;
    opacity: 0.7;
    line-height: 1.6;
}

.contact-extra {
    text-align: center;
    padding: 40px;
    background: rgba(255, 0, 0, 0.05);
    border: 1px dashed var(--accent-color);
}