/* --- Global Reset & Variables --- */
:root {
    /* Palette: Dark Tech Theme */
    --color-bg: #0B0E14; /* Очень темный синий, почти черный */
    --color-surface: #151A23; /* Чуть светлее для карточек/футера */
    --color-text: #E2E8F0; /* Светлый текст */
    --color-text-muted: #94A3B8; /* Приглушенный текст */
    --color-primary: #3B82F6; /* Яркий синий */
    --color-accent: #10B981; /* Неоновый зеленый (успех/код) */
    --color-hover: #2563EB;
    
    /* Fonts */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px 0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Utility Classes --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--font-body);
}

.btn--primary {
    background-color: var(--color-primary);
    color: #fff;
}

.btn--primary:hover {
    background-color: var(--color-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* --- Header --- */
.header {
    background-color: rgba(11, 14, 20, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 0;
}

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

.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-primary);
}

.header__logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
}

.header__nav {
    display: none; /* Mobile first hidden */
}

@media (min-width: 768px) {
    .header__nav {
        display: block;
    }
    
    .header__menu {
        display: flex;
        gap: 30px;
    }
    
    .header__link {
        font-size: 0.95rem;
        font-weight: 500;
        color: var(--color-text-muted);
    }
    
    .header__link:hover {
        color: var(--color-primary);
    }
}

.header__cta {
    display: none;
}

@media (min-width: 768px) {
    .header__cta {
        display: inline-flex;
    }
}

.header__burger {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    display: block;
}

@media (min-width: 768px) {
    .header__burger {
        display: none;
    }
}

/* --- Main Content Spacer --- */
.main {
    padding-top: 80px; /* Чтобы хедер не перекрывал контент */
    min-height: 60vh; /* Временно, пока нет контента */
}

/* --- Footer --- */
.footer {
    background-color: var(--color-surface);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

.footer__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .footer__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer__container {
        grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    }
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #fff;
}

.footer__desc {
    color: var(--color-text-muted);
    margin-bottom: 20px;
    max-width: 300px;
}

.footer__copyright {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    opacity: 0.6;
}

.footer__title {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer__list li {
    margin-bottom: 10px;
}

.footer__link {
    color: var(--color-text-muted);
}

.footer__link:hover {
    color: var(--color-primary);
}

.footer__contacts li {
    margin-bottom: 15px;
}

.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--color-text-muted);
}

.footer__icon {
    width: 18px;
    height: 18px;
    color: var(--color-primary);
    flex-shrink: 0;
    margin-top: 3px;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Компенсація фіксованого хедера */
    overflow: hidden;
}

.hero__canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.6; /* Щоб не заважав читати текст */
}

.hero__container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero__content {
    max-width: 700px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 6px 16px;
    border-radius: 50px;
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(5px);
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-accent);
    animation: pulse 2s infinite;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .hero__title {
        font-size: 3.5rem;
    }
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__description {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero__description strong {
    color: var(--color-text);
    font-weight: 600;
}

.hero__actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 48px;
}

@media (min-width: 480px) {
    .hero__actions {
        flex-direction: row;
    }
}

.btn-icon {
    width: 18px;
    height: 18px;
    margin-left: 8px;
}

.btn--outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn--outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* Статистика внизу Hero */
.hero__stats {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__stat-item {
    display: flex;
    flex-direction: column;
}

.hero__stat-num {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.hero__stat-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.hero__stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

/* Анімація скролу */
.hero__scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0.7;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid #fff;
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: #fff;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { top: 6px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* --- Common Section Styles --- */
.section {
    padding: var(--section-padding);
    position: relative;
}

.text-center {
    text-align: center;
}

.section-header {
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

.section-subtitle strong {
    color: var(--color-text);
}

/* --- Courses Grid --- */
.courses__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .courses__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .courses__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Course Card --- */
.course-card {
    background: rgba(21, 26, 35, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Эффект свечения при наведении */
.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255,255,255,0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 1;
}

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

.course-card__icon-wrapper {
    width: 56px;
    height: 56px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--color-primary);
}

.course-card__icon {
    width: 28px;
    height: 28px;
}

.course-card__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.course-card__desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1; /* Чтобы кнопки были на одном уровне */
}

.course-card__tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.course-card__tags li {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 4px;
    color: var(--color-text-muted);
}

.course-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.course-card__link:hover {
    gap: 10px; /* Анимация стрелки */
}

/* Featured Card Style */
.course-card--featured {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.05);
}

.course-card--featured .course-card__icon-wrapper {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-accent);
}

.course-card--featured .course-card__link {
    color: var(--color-accent);
}

.course-card__badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--color-accent);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* --- Methodology Section --- */
.methodology__wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: flex-start; /* Вирівнювання по верху */
}

@media (min-width: 992px) {
    .methodology__wrapper {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 80px;
    }
}

/* Список переваг */
.methodology__list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.methodology__item {
    display: flex;
    gap: 20px;
}

.methodology__icon-box {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
}

.methodology__item-title {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.methodology__item-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* CTA Card (Sidebar) */
.cta-card {
    position: relative;
    background: linear-gradient(145deg, #1A202C 0%, #11141B 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    padding: 40px;
    overflow: hidden;
    text-align: center;
}

@media (min-width: 992px) {
    .cta-card {
        position: sticky;
        top: 100px; /* Липкий ефект при скролі на десктопі */
    }
}

.cta-card__icon {
    width: 48px;
    height: 48px;
    color: var(--color-accent);
    margin-bottom: 20px;
}

.cta-card__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.cta-card__desc {
    color: var(--color-text-muted);
    margin-bottom: 30px;
}

.cta-card__btn {
    width: 100%;
    margin-bottom: 16px;
}

.cta-card__note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    opacity: 0.7;
}

.cta-card__bg {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.cta-card__content {
    position: relative;
    z-index: 1;
}

/* --- Mentors Section --- */
.mentors__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .mentors__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.mentor-card {
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    padding: 30px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.mentor-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.04);
}

.mentor-card__img-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--color-primary);
    padding: 3px; /* Відступ між бордером і фото */
    background: transparent;
}

.mentor-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background-color: #2d3748; /* Колір заглушки якщо фото не завантажиться */
}

.mentor-card__name {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.mentor-card__role {
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mentor-card__bio {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* --- Promo / Career Box --- */
.promo-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .promo-box {
        flex-direction: row;
        text-align: left;
        padding: 60px;
        justify-content: space-between;
    }
}

.promo-box__content {
    max-width: 600px;
}

.promo-box__title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 16px;
}

.promo-box__text {
    color: var(--color-text-muted);
    margin-bottom: 24px;
    font-size: 1.05rem;
}

.promo-box__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.promo-box__list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 0.95rem;
}

.promo-box__list i {
    color: var(--color-accent);
    width: 20px;
    height: 20px;
}

.btn--large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* --- Contact Section --- */
.contact__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 992px) {
    .contact__container {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.contact__note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1); /* Green tint */
    color: var(--color-accent);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-top: 20px;
}

.contact__note i {
    width: 18px;
    height: 18px;
}

/* Form Styles */
.contact__form-wrapper {
    background: var(--color-surface);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(11, 14, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.captcha-question {
    font-weight: 700;
    color: #fff;
    font-family: var(--font-heading);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.form-checkbox input {
    margin-top: 3px;
    cursor: pointer;
}

.form-checkbox a {
    color: var(--color-primary);
    text-decoration: underline;
}

.form-btn {
    width: 100%;
}

.form-message {
    margin-top: 15px;
    font-size: 0.95rem;
    text-align: center;
    min-height: 24px;
}

.form-message.success {
    color: var(--color-accent);
}

.form-message.error {
    color: #ef4444;
}

/* --- Cookie Popup --- */
.cookie-popup {
    position: fixed;
    bottom: -100px; /* Hidden by default */
    left: 0;
    width: 100%;
    background: rgba(21, 26, 35, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    z-index: 2000;
    transition: bottom 0.5s ease;
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .cookie-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

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

.btn--small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* --- Styles for Policy Pages (pages section) --- */
.pages {
    padding: 60px 0;
}

.pages h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #fff;
}

.pages h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #fff;
}

.pages p {
    color: var(--color-text-muted);
    margin-bottom: 15px;
}

.pages ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
    color: var(--color-text-muted);
}

.pages li {
    margin-bottom: 10px;
}

.pages strong {
    color: var(--color-text);
}

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