/* ==================
   GLOBAL STYLES
   ================== */
:root {
    --bg-color: #11131A;
    --text-color: #EAEBEF;
    --text-muted: #9A9DA8;
    --primary-color-start: #8E2DE2;
    --primary-color-end: #4A00E0;
    --surface-color: #1A1D25;
    --border-color: #2D313D;

    --font-heading: 'Unbounded', cursive;
    --font-body: 'Manrope', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-color);
    line-height: 1.2;
}

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

a:hover {
    color: var(--primary-color-start);
}

ul {
    list-style: none;
}

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

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

.button {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 500;
    font-family: var(--font-body);
    text-align: center;
    color: #fff;
    background: linear-gradient(90deg, var(--primary-color-start), var(--primary-color-end));
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.button:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(74, 0, 224, 0.2);
}

/* ==================
   HEADER
   ================== */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background-color: rgba(17, 19, 26, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
}
.logo:hover {
    color: var(--text-color);
}

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

.header__menu {
    display: flex;
    gap: 30px;
}

.header__menu-link {
    font-size: 16px;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.header__menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color-start), var(--primary-color-end));
    transition: width 0.3s ease;
}

.header__menu-link:hover::after {
    width: 100%;
}

.header__button {
    display: none; /* Mobile first */
}

.header__burger-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    z-index: 1001;
}

/* Desktop styles */
@media (min-width: 992px) {
    .header__nav {
        display: block;
    }
    .header__button {
        display: inline-block;
    }
    .header__burger-btn {
        display: none;
    }
}


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

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

.footer__logo {
    margin-bottom: 15px;
    display: inline-block;
}

.footer__description,
.footer__address {
    color: var(--text-muted);
    font-size: 15px;
}

.footer__title {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 500;
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

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

.footer__bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

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

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

/* ==================
   HERO SECTION
   ================== */
.hero {
    min-height: calc(100vh - 90px); /* 90px - примерная высота хедера */
    display: flex;
    align-items: center;
    padding: 80px 0;
    overflow: hidden;
    position: relative;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 4rem); /* Адаптивный размер шрифта */
    font-weight: 700;
    margin-bottom: 20px;
}

.hero__title--highlight {
    background: linear-gradient(90deg, var(--primary-color-start), var(--primary-color-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.hero__subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 550px;
    margin-bottom: 40px;
}

.hero__cta {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.hero__info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.hero__info-icon {
    width: 16px;
    height: 16px;
}

.hero__visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__canvas {
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

/* Desktop Styles */
@media (min-width: 992px) {
    .hero__container {
        grid-template-columns: 1.2fr 1fr;
    }
    
    .hero__visual {
        position: relative;
        height: auto;
    }

    .hero__canvas {
        opacity: 1;
    }
}
/* ==================
   REUSABLE SECTION STYLES
   ================== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 15px;
}

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

/* ==================
   COURSES SECTION
   ================== */
.courses {
    padding: 100px 0;
    background-color: var(--surface-color);
}

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

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

.course-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color-start);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.course-card__icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: var(--surface-color);
    margin-bottom: 25px;
}

.course-card__icon i {
    width: 28px;
    height: 28px;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.course-card:hover .course-card__icon i {
    color: var(--primary-color-start);
}

.course-card__title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.course-card__description {
    color: var(--text-muted);
    flex-grow: 1;
    margin-bottom: 25px;
}

.course-card__link {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.course-card__link i {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.course-card:hover .course-card__link i {
    transform: translateX(5px);
}

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

@media (min-width: 992px) {
    .courses__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
/* ==================
   REUSABLE MODIFIERS
   ================== */
.section-header--left {
    text-align: left;
    margin: 0 0 40px 0;
}


/* ==================
   BENEFITS SECTION
   ================== */
.benefits {
    padding: 100px 0;
}

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

.benefits__list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.benefits__item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.benefits__item-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color-start), var(--primary-color-end));
}

.benefits__item-icon i {
    width: 24px;
    height: 24px;
    color: #fff;
}

.benefits__item-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 5px;
}

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

.benefits__image-wrapper {
    order: -1; /* Показывает изображение сверху на мобильных */
}

.benefits__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Desktop Styles */
@media (min-width: 992px) {
    .benefits__container {
        grid-template-columns: 1.1fr 1fr;
    }

    .benefits__image-wrapper {
        order: 1; /* Возвращает изображение направо на десктопе */
    }
}

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

.process__steps-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    position: relative;
}

.process-step {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.process-step__number {
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 4rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
}

.process-step__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
}

.process-step__icon i {
    width: 28px;
    height: 28px;
    color: var(--primary-color-start);
}

.process-step__title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 10px;
}

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

/* Desktop Styles */
@media (min-width: 992px) {
    .process__steps-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    /* Connecting line */
    .process-step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 50%;
        right: -30px; /* Half of the gap */
        transform: translate(50%, -50%);
        width: 30px; /* Equals the gap */
        height: 2px;
        background-image: linear-gradient(to right, var(--border-color) 60%, transparent 40%);
        background-size: 10px 2px;
        background-repeat: repeat-x;
    }
}

/* ==================
   FAQ SECTION
   ================== */
.faq {
    padding: 100px 0;
}

.faq__accordion {
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
}

.faq__item {
    border-bottom: 1px solid var(--border-color);
}

.faq__question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 25px 0;
    
    /* Reset button styles */
    background: none;
    border: none;
    cursor: pointer;
    
    /* Text styles */
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-color);
    text-align: left;
}

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

.faq__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

/* Стили для раскрывающегося ответа */
.faq__answer {
    display: grid;
    grid-template-rows: 0fr; /* Изначально скрыт */
    transition: grid-template-rows 0.4s ease;
}

.faq__answer p {
    overflow: hidden;
    color: var(--text-muted);
    padding-bottom: 25px;
    font-size: 1rem;
    line-height: 1.7;
}

/* Активное состояние */
.faq__item.active .faq__question {
    color: var(--primary-color-start);
}

.faq__item.active .faq__answer {
    grid-template-rows: 1fr; /* Показываем ответ */
}

.faq__item.active .faq__icon {
    transform: rotate(45deg);
    color: var(--primary-color-start);
}

/* ==================
   CONTACT SECTION
   ================== */
.contact {
    padding: 100px 0;
    background-color: var(--surface-color);
}

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

.contact__form-wrapper {
    background-color: var(--bg-color);
    border-radius: 12px;
    padding: 40px;
    border: 1px solid var(--border-color);
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

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

.form-input {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input::placeholder {
    color: #6c7182;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color-start);
    box-shadow: 0 0 0 3px rgba(142, 45, 226, 0.2);
}

.form-group--checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

.form-group--checkbox input[type="checkbox"] {
    margin-top: 4px;
    flex-shrink: 0;
}

.contact__submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Success Message */
.form-success-message {
    text-align: center;
    padding: 40px;
}

.form-success-message i {
    color: #28a745; /* Success Green */
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.form-success-message h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.form-success-message p {
    color: var(--text-muted);
}


/* Desktop Styles */
@media (min-width: 992px) {
    .contact__container {
        grid-template-columns: 1fr 1.1fr;
    }
}

/* ==================
   COOKIE POPUP
   ================== */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(17, 19, 26, 0.8);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    z-index: 2000;
    border-top: 1px solid var(--border-color);
    
    /* Animation */
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}

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

.cookie-popup__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

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

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

.cookie-popup__btn {
    padding: 8px 24px;
    font-size: 0.9rem;
    flex-shrink: 0;
}

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

/* ==================
   STATIC PAGES (PRIVACY, TERMS, ETC.)
   ================== */
.pages {
    padding: 80px 0;
    min-height: 80vh;
}

.pages .container {
    max-width: 800px; /* Ограничиваем ширину для лучшей читабельности */
}

.pages h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    background: linear-gradient(90deg, var(--primary-color-start), var(--primary-color-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

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

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

.pages ul,
.pages ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.pages li {
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.8;
}

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

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

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