/* ==================== GLOBAL STYLES ==================== */
:root {
    --header-height: 4.5rem;

    /* Colors */
    --background-color: #FDFEFF;
    --text-color: #1A1D2D;
    --primary-color: #4A55A2;
    --accent-color: #FFD369;
    --light-gray-color: #E9ECEF;
    --white-color: #FFFFFF;

    /* Fonts */
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Poppins', sans-serif;

    --h1-font-size: 2.5rem;
    --h2-font-size: 2rem;
    --h3-font-size: 1.5rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--normal-font-size);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-color);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* Reusable CSS Classes */
.container {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* ==================== HEADER ==================== */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--white-color);
    border-bottom: 1px solid var(--light-gray-color);
    z-index: 100;
}

.header__container {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.header__nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header__nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.header__nav-link--button {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.header__nav-link--button:hover {
    background-color: #3A448A;
    color: var(--white-color);
    transform: translateY(-2px);
}

.header__burger {
    display: none; /* Hidden on desktop */
    cursor: pointer;
    background: none;
    border: none;
}

/* ==================== FOOTER ==================== */
.footer {
    background-color: #1A1D2D;
    color: #F0F2F5;
    padding: 4rem 0 2rem;
}

.footer__container {
    display: grid;
    gap: 3rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer__logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white-color);
    margin-bottom: 1rem;
    display: inline-block;
}

.footer__copyright {
    font-size: var(--small-font-size);
    color: #ADB5BD;
}

.footer__title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--white-color);
    font-weight: 600;
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__link {
    color: #CED4DA;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

.footer__link:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer__list--contact {
    gap: 1rem;
}

.footer__list--contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer__list--contact .lucide {
    color: var(--accent-color);
    flex-shrink: 0;
}


/* ==================== MEDIA QUERIES ==================== */
@media screen and (max-width: 768px) {
    .header__nav {
        /* Styles for mobile menu will be added later */
        display: none;
    }
    .header__burger {
        display: block;
    }
    
    .footer__container {
        text-align: center;
    }

    .footer__list--contact li {
        justify-content: center;
    }
}

/* ==================== BUTTONS ==================== */
.button {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.button--primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.button--primary:hover {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* ==================== HERO ==================== */
.hero {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 4rem;
    overflow: hidden; /* To hide elements before animation */
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.hero__title {
    font-size: var(--h1-font-size);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero__description {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero__image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__image {
    max-width: 450px;
    width: 100%;
    border-radius: 20px;
}

/* Animation styles */
.animate-on-load {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-load.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ==================== MEDIA QUERIES (дополнения) ==================== */
@media screen and (min-width: 768px) {
    .hero__container {
        grid-template-columns: 1.2fr 1fr;
    }
}

@media screen and (min-width: 992px) {
    :root {
        --h1-font-size: 3.5rem;
    }
    
    .hero {
        padding-top: calc(var(--header-height) + 6rem);
        padding-bottom: 6rem;
    }
}

/* ==================== COURSES ==================== */
.courses {
    padding: 5rem 0;
    background-color: #f7faff;
}

.courses__title,
.courses__subtitle {
    text-align: center;
}

.courses__title {
    font-size: var(--h2-font-size);
    margin-bottom: 1rem;
}

.courses__subtitle {
    max-width: 600px;
    margin: 0 auto 4rem;
    color: #555;
}

.courses__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.courses__card {
    background-color: var(--white-color);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--light-gray-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.courses__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.courses__card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9eaff;
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.courses__card-icon .lucide {
    color: var(--primary-color);
    width: 32px;
    height: 32px;
}

.courses__card-title {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.courses__card-description {
    font-size: var(--normal-font-size);
    line-height: 1.7;
}

/* Scroll Animation */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delay for cards */
.courses__card:nth-child(2) { transition-delay: 100ms; }
.courses__card:nth-child(3) { transition-delay: 200ms; }
.courses__card:nth-child(4) { transition-delay: 300ms; }

/* ==================== PROCESS ==================== */
.process {
    padding: 5rem 0;
    background-color: var(--background-color);
}

.process__header {
    text-align: center;
    margin-bottom: 4rem;
}

.process__title {
    font-size: var(--h2-font-size);
    margin-bottom: 1rem;
}

.process__subtitle {
    max-width: 600px;
    margin: 0 auto;
    color: #555;
}

.process__timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 3rem;
}

/* The vertical line */
.process__timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 2px;
    height: calc(100% - 40px);
    background-color: var(--light-gray-color);
}

.process__step {
    position: relative;
    padding-left: 60px; /* Space for the line and circle */
}

/* The circle on the line */
.process__step::before {
    content: '';
    position: absolute;
    left: 13px; /* (20px - (14px / 2)) */
    top: 10px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--white-color);
    border: 3px solid var(--primary-color);
    z-index: 1;
}

.process__step-number {
    font-size: 3rem;
    font-weight: 700;
    color: #e9ecef;
    position: absolute;
    top: -15px;
    left: 60px;
    z-index: -1;
}

.process__step-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Staggered delay for steps animation */
.process__step:nth-child(2) { transition-delay: 100ms; }
.process__step:nth-child(3) { transition-delay: 200ms; }
.process__step:nth-child(4) { transition-delay: 300ms; }

/* ==================== MEDIA QUERIES (дополнения) ==================== */
@media screen and (max-width: 576px) {
    .process__timeline::before {
        left: 10px;
    }
    .process__step {
        padding-left: 40px;
    }
    .process__step::before {
        left: 3px;
    }
    .process__step-number {
        left: 40px;
        font-size: 2.5rem;
    }
}
/* ==================== MENTORS ==================== */
.mentors {
    padding: 5rem 0;
    background-color: #f7faff;
}

.mentors__header {
    text-align: center;
    margin-bottom: 4rem;
}

.mentors__title {
    font-size: var(--h2-font-size);
    margin-bottom: 1rem;
}

.mentors__subtitle {
    max-width: 600px;
    margin: 0 auto;
    color: #555;
}

.mentors__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.mentors__card {
    background-color: var(--white-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mentors__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.mentors__card-image {
    overflow: hidden;
    height: 320px;
}

.mentors__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.mentors__card:hover .mentors__card-image img {
    transform: scale(1.05);
}

.mentors__card-content {
    padding: 1.5rem;
}

.mentors__card-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.mentors__card-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.mentors__card-quote {
    font-style: italic;
    color: #555;
    line-height: 1.6;
    border-left: 3px solid var(--accent-color);
    padding-left: 1rem;
}

/* Staggered delay for mentor cards animation */
.mentors__card:nth-child(2) { transition-delay: 100ms; }
.mentors__card:nth-child(3) { transition-delay: 200ms; }

/* ==================== FORMAT ==================== */
.format {
    padding: 5rem 0;
    background-color: var(--background-color);
}

.format__header {
    text-align: center;
    margin-bottom: 4rem;
}

.format__title {
    font-size: var(--h2-font-size);
    margin-bottom: 1rem;
}

.format__subtitle {
    max-width: 600px;
    margin: 0 auto;
    color: #555;
}

.format__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.format__card {
    border: 2px solid var(--light-gray-color);
    border-radius: 12px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.format__card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.format__card-header .lucide {
    color: var(--primary-color);
}

.format__card-title {
    font-size: 1.75rem;
}

.format__card-description {
    margin-bottom: 2rem;
    color: #555;
}

.format__features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.format__features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.format__features .lucide-check {
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Featured Card */
.format__card--featured {
    border-color: var(--primary-color);
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(74, 85, 162, 0.15);
}

.format__card-badge {
    position: absolute;
    top: 20px;
    right: -40px;
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 0.3rem 3rem;
    font-size: var(--small-font-size);
    font-weight: 600;
    transform: rotate(45deg);
    text-align: center;
}

/* Staggered delay for format cards animation */
.format__card:nth-child(2) { transition-delay: 150ms; }


@media screen and (min-width: 768px) {
    .format__grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==================== CONTACT ==================== */
.contact {
    padding: 5rem 0;
    background-color: #f7faff;
}

.contact__container {
    display: grid;
    gap: 4rem;
}

.contact__info-title {
    font-size: var(--h2-font-size);
    margin-bottom: 1rem;
}

.contact__info-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #555;
}

.contact__form-wrapper {
    background-color: var(--white-color);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact__form-group {
    display: flex;
    flex-direction: column;
}

.contact__form-label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact__form-input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--light-gray-color);
    border-radius: 8px;
    font-size: var(--normal-font-size);
    font-family: var(--font-body);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact__form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 85, 162, 0.15);
}

.contact__form-group--checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: var(--small-font-size);
}

.contact__form-group--checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

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

.contact__form-button {
    width: 100%;
    margin-top: 1rem;
}

/* Success Message */
.contact__form-success {
    display: none; /* Hidden by default */
    text-align: center;
    padding: 2rem;
}

.contact__form-success .lucide {
    width: 60px;
    height: 60px;
    color: #28a745; /* Green color for success */
    margin-bottom: 1rem;
}

.contact__form-success h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

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

/* ==================== COOKIE POPUP ==================== */
.cookie-popup {
    position: fixed;
    bottom: -100%; /* Initially hidden */
    left: 0;
    width: 100%;
    background-color: var(--text-color);
    color: var(--white-color);
    padding: 1.5rem;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15);
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    transition: bottom 0.5s ease-in-out;
}

.cookie-popup.is-visible {
    bottom: 0;
}

.cookie-popup__text {
    margin: 0;
}

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

.cookie-popup__button {
    padding: 0.6rem 1.8rem;
    flex-shrink: 0; /* Prevent button from shrinking */
}

@media screen and (max-width: 768px) {
    .cookie-popup {
        flex-direction: column;
        text-align: center;
    }
}

/* ==================== POLICY PAGES ==================== */
.pages {
    padding: calc(var(--header-height) + 4rem) 0 4rem;
}

.pages .container {
    max-width: 800px; /* Optimal width for reading text */
}

.pages h1, .pages h2 {
    margin-bottom: 1.5rem;
    margin-top: 2.5rem;
}

.pages p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.pages ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 1.5rem;
}

.pages li {
    margin-bottom: 0.75rem;
}

.pages a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
}

.pages a:hover {
    text-decoration: none;
}