/* GLOBAL STYLES & VARIABLES */
:root {
    --bg-main: #0A192F;
    --bg-light: #112240;
    --text-primary: #CCD6F6;
    --text-secondary: #8892B0;
    --accent: #64FFDA;
    --accent-dark: #4acdb3;
    --font-main: 'Inter', sans-serif;
    --font-headings: 'Space Grotesk', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-dark);
}

ul {
    list-style: none;
}

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


/* HEADER */
.header {
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    transition: top 0.3s;
}

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

.header__logo {
    font-family: var(--font-headings);
    font-size: 24px;
    font-weight: 700;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav__link {
    color: var(--text-primary);
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav__link:hover {
    color: var(--accent);
}

.nav__link--button {
    border: 1px solid var(--accent);
    padding: 10px 20px;
    border-radius: 5px;
    color: var(--accent);
}

.nav__link--button:hover {
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--accent);
}

.header__burger-btn {
    display: none;
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
}


/* FOOTER */
.footer {
    background-color: var(--bg-light);
    padding: 60px 0 20px;
    border-top: 1px solid var(--text-secondary);
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer__logo {
    font-family: var(--font-headings);
    font-size: 28px;
    font-weight: 700;
    display: block;
    margin-bottom: 15px;
}

.footer__description {
    color: var(--text-secondary);
    max-width: 300px;
}

.footer__title {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

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

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

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

.footer__list--contacts li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer__icon {
    width: 18px;
    height: 18px;
    color: var(--accent);
}

.footer__text {
    color: var(--text-secondary);
}

.footer__bottom {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    padding-top: 20px;
    border-top: 1px solid rgba(136, 146, 176, 0.2);
}

/* RESPONSIVE STYLES (Mobile-first) */
@media (max-width: 768px) {
    .header__nav {
        display: none; /* Скрываем навигацию */
    }

    .header__burger-btn {
        display: block; /* Показываем кнопку бургера */
    }
}

/* style.css */

/* HERO SECTION */
.hero {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding-top: 80px; /* Header height offset */
}

.hero__content {
    max-width: 800px;
}

.hero__title {
    font-size: 5rem; /* 80px */
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 25px;
}

.hero__title--highlight {
    color: var(--accent);
    /* Blinking cursor effect */
    border-right: 4px solid var(--accent);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from, to { border-color: transparent }
    50% { border-color: var(--accent) }
}

.hero__subtitle {
    font-size: 1.125rem; /* 18px */
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 40px;
}

.hero__cta-button {
    font-family: var(--font-headings);
    font-size: 1rem;
    color: var(--accent);
    background-color: transparent;
    border: 1px solid var(--accent);
    padding: 18px 35px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.hero__cta-button:hover {
    background-color: rgba(100, 255, 218, 0.1);
}

/* RESPONSIVE STYLES for HERO */
@media (max-width: 992px) {
    .hero__title {
        font-size: 4rem; /* 64px */
    }
}

@media (max-width: 768px) {
    .hero {
        text-align: center;
        justify-content: center;
    }
    .hero__title {
        font-size: 3rem; /* 48px */
    }
    .hero__subtitle {
        font-size: 1rem;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 2.5rem; /* 40px */
    }
}

/* style.css */

/* GENERAL SECTION STYLES */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header__title {
    font-size: 2.5rem; /* 40px */
    margin-bottom: 15px;
}

.section-header__subtitle {
    font-size: 1.125rem; /* 18px */
    color: var(--text-secondary);
}


/* COURSES SECTION */
.courses {
    padding: 100px 0;
}

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

.course-card {
    background-color: var(--bg-light);
    padding: 40px 30px;
    border-radius: 5px;
    border: 1px solid transparent;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.course-card__icon {
    color: var(--accent);
    margin-bottom: 25px;
}

.course-card__icon i {
    width: 48px;
    height: 48px;
}

.course-card__title {
    font-size: 1.5rem; /* 24px */
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.course-card:hover .course-card__title {
    color: var(--accent);
}

.course-card__description {
    color: var(--text-secondary);
    margin-bottom: 25px;
    flex-grow: 1; /* Pushes the link to the bottom */
}

.course-card__link {
    font-family: var(--font-headings);
    color: var(--text-primary);
    font-weight: 500;
}

.course-card__link:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* RESPONSIVE STYLES for COURSES */
@media (max-width: 768px) {
    .courses {
        padding: 80px 0;
    }
    .section-header__title {
        font-size: 2rem; /* 32px */
    }
    .section-header__subtitle {
        font-size: 1rem;
    }
}

/* style.css */

/* PROCESS SECTION */
.process {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.process__steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 25px;
}

.process-step__number {
    font-family: var(--font-headings);
    font-size: 3rem; /* 48px */
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.process-step__title {
    font-size: 1.5rem; /* 24px */
    margin-bottom: 10px;
}

.process-step__description {
    color: var(--text-secondary);
}


/* RESPONSIVE STYLES for PROCESS */
@media (max-width: 992px) {
    .process__steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .process {
        padding: 80px 0;
    }
    .process-step__number {
        font-size: 2.5rem;
    }
    .process-step__title {
        font-size: 1.25rem;
    }
}

/* style.css */

/* ABOUT SECTION */
.about {
    padding: 100px 0;
}

.about__content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 60px;
    align-items: center;
}

.about__text-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.125rem; /* 18px */
}

.about__features-list {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

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

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

.about__image-content {
    position: relative;
}

.about__image-wrapper {
    border-radius: 5px;
    position: relative;
    width: 100%;
    padding-top: 100%; /* Creates a 1:1 aspect ratio */
    background-color: var(--accent);
}

.about__image-wrapper::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent);
    border-radius: 5px;
    z-index: 1;
    transition: transform 0.3s ease;
}

.about__image-wrapper:hover::after {
    transform: translate(-5px, -5px);
}

.about__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    z-index: 2;
    filter: grayscale(100%) contrast(1.2);
    transition: filter 0.3s ease;
}

.about__image-wrapper:hover .about__image {
    filter: none;
}


/* RESPONSIVE STYLES for ABOUT */
@media (max-width: 992px) {
    .about__content {
        grid-template-columns: 1fr;
    }
    .about__image-content {
        margin-top: 40px;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .about {
        padding: 80px 0;
    }
    .about__text-content p {
        font-size: 1rem;
    }
    .about__features-list {
        grid-template-columns: 1fr;
    }
}

/* style.css */

/* REVIEWS SECTION */
.reviews {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.reviews__slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden; /* This hides the other slides */
}

.reviews__slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.review-card {
    background-color: var(--bg-main);
    border-radius: 5px;
    padding: 40px;
    flex: 0 0 100%; /* Each card takes 100% of the wrapper width */
    box-sizing: border-box;
}

.review-card__text {
    font-size: 1.125rem; /* 18px */
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-style: italic;
}

.review-card__author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.review-card__avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

.review-card__name {
    display: block;
    font-weight: 700;
    color: var(--text-primary);
}

.review-card__role {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.reviews__nav {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

.reviews__nav-btn {
    background-color: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-secondary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.reviews__nav-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}


/* RESPONSIVE STYLES for REVIEWS */
@media (max-width: 768px) {
    .reviews {
        padding: 80px 0;
    }
    .review-card {
        padding: 30px;
    }
    .review-card__text {
        font-size: 1rem;
    }
}

/* style.css */

/* CONTACT SECTION */
.contact {
    padding: 100px 0;
}

.contact__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact__title {
    font-size: 2.5rem; /* 40px */
    margin-bottom: 20px;
}

.contact__description {
    font-size: 1.125rem; /* 18px */
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.contact__notice {
    font-style: italic;
    color: var(--text-secondary);
}

.contact__form-wrapper {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 5px;
}

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

.form-group__label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-group__input {
    width: 100%;
    padding: 15px;
    background-color: var(--bg-main);
    border: 1px solid var(--text-secondary);
    border-radius: 5px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group__input:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group__input.invalid {
    border-color: #ff4d4d;
}

.form-group--checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}
.form-group--checkbox label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}
.form-group--checkbox input {
    accent-color: var(--accent);
}

.contact-form__button {
    width: 100%;
    padding: 18px;
    font-family: var(--font-headings);
    font-size: 1.125rem;
    color: var(--accent);
    background-color: transparent;
    border: 1px solid var(--accent);
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form__button:hover {
    background-color: rgba(100, 255, 218, 0.1);
}

.success-message {
    display: none; /* Hidden by default */
    text-align: center;
    padding: 20px;
    border: 1px solid var(--accent);
    border-radius: 5px;
}

.success-message.is-visible {
    display: block;
}

/* RESPONSIVE STYLES for CONTACT */
@media (max-width: 992px) {
    .contact__container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact {
        padding: 80px 0;
    }
    .contact__title {
        font-size: 2rem;
    }
}

/* style.css */

/* COOKIE POPUP */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-light);
    color: var(--text-secondary);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 200;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}

.cookie-popup.is-visible {
    transform: translateY(0);
}

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

.cookie-popup__button {
    background-color: var(--accent);
    color: var(--bg-main);
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-family: var(--font-headings);
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.cookie-popup__button:hover {
    background-color: var(--accent-dark);
}

@media (max-width: 768px) {
    .cookie-popup {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px;
    }
}

/* style.css */

/* STYLES FOR POLICY PAGES */
.pages {
    padding: 120px 0 60px; /* 120px top padding to offset the fixed header */
}

.pages h1 {
    font-size: 3rem;
    margin-bottom: 30px;
    color: var(--accent);
}

.pages h2 {
    font-size: 2rem;
    margin-top: 40px;
    margin-bottom: 20px;
}

.pages p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.pages a {
    text-decoration: underline;
}

.pages ul {
    list-style: disc;
    padding-left: 25px;
    color: var(--text-secondary);
}

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

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