/* GLOBAL STYLES */
:root {
    --background-color: #F8F9FA;
    --text-color: #212529;
    --primary-color: #6f42c1;
    --accent-color: #8650f3;
    --border-color: #DEE2E6;
    --white-color: #FFFFFF;

    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Roboto', 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(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

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

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

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

ul {
    list-style: none;
}

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

/* HEADER */
.header {
    background-color: var(--white-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

.nav__list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav__link {
    font-weight: 500;
    color: var(--text-color);
    position: relative;
    padding: 0.25rem 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link--cta {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 0.5rem 1.25rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav__link--cta:hover {
    background-color: var(--accent-color);
    color: var(--white-color);
}
.nav__link--cta::after {
    display: none;
}

.header__menu-button {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
}

/* FOOTER */
.footer {
    background-color: #343a40;
    color: var(--background-color);
    padding: 4rem 0 2rem;
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

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

.footer__copy {
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer__title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--white-color);
}

.footer__list li {
    margin-bottom: 0.5rem;
}

.footer__link {
    color: var(--background-color);
    opacity: 0.8;
}

.footer__link:hover {
    opacity: 1;
    color: var(--white-color);
}

.footer__address {
    font-style: normal;
    line-height: 1.8;
}

.footer__address p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

/* RESPONSIVE STYLES (Mobile-First) */
@media (max-width: 992px) {
    .footer__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header__nav {
        display: none; /* Hide nav menu on mobile */
    }
    .header__menu-button {
        display: block; /* Show hamburger icon */
    }

    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* --- BUTTONS --- */
.button {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    border: 2px solid transparent;
}

.button:hover {
    transform: translateY(-3px);
}

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

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

/* --- HERO SECTION --- */
.hero {
    min-height: calc(100vh - 80px); /* 100% высоты экрана минус высота хедера */
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

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

.hero__title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero__subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: #495057; /* Slightly lighter text color */
}

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

/* --- HERO SECTION NEW STYLES --- */

/* Видаліть старі стилі .hero__skills-animation та .hero__skill-tag */

.hero__title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 800;
    
    /* СТИЛІ ДЛЯ АНІМАЦІЇ ДРУКУ */
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 4px solid var(--primary-color); /* Курсор */
    width: 0;
    animation: 
        typing 3s steps(39, end) forwards,
        blink-caret .75s step-end infinite;
}

/* Анімація набору тексту */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

/* Анімація миготіння курсору */
@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-color); }
}

.hero__image {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* --- Оновлення для адаптивності --- */
@media (max-width: 768px) {
    .hero__title {
        font-size: 2.5rem;
        /* На мобільних можна прибрати анімацію для кращої читабельності */
        animation: none;
        width: auto;
        border-right: none;
        white-space: normal;
    }
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 992px) {
    .hero__title {
        font-size: 2.8rem;
    }
    .hero__container {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        text-align: center;
        padding: 3rem 0;
        min-height: auto;
    }
    .hero__container {
        grid-template-columns: 1fr;
    }
    .hero__title {
        font-size: 2.5rem;
    }
    .hero__subtitle {
        font-size: 1.1rem;
    }
    .hero__visual {
        margin-top: 3rem;
    }
}

/* --- GLOBAL SECTION STYLES --- */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

/* --- PROGRAMS SECTION --- */
.programs {
    padding: 5rem 0;
    background-color: var(--white-color);
}

.programs__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.program-card {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.program-card__icon {
    margin-bottom: 1.5rem;
}

.program-card__icon i {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
}

.program-card__title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.program-card__description {
    font-size: 1rem;
    line-height: 1.6;
    color: #495057;
}

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

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    .programs {
        padding: 3rem 0;
    }
}

/* --- METHODOLOGY SECTION --- */
.methodology {
    padding: 5rem 0;
    /* Используем основной цвет фона для визуального разделения секций */
    background-color: var(--background-color); 
}

.methodology__list {
    display: grid;
    /* Две колонки на десктопе */
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.methodology__item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.methodology__icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
}

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

.methodology__title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.methodology__description {
    font-size: 1rem;
    line-height: 1.6;
    color: #495057;
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 768px) {
    .methodology__list {
        /* Одна колонка на мобильных */
        grid-template-columns: 1fr;
    }
}

/* --- AUDIENCE SECTION --- */
.audience {
    padding: 5rem 0;
    background-color: var(--white-color);
}

.audience__container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 3rem;
}

.audience__image {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.audience__title {
    text-align: left;
    margin-bottom: 2rem;
}

/* Accordion Styles */
.accordion__item {
    border-bottom: 1px solid var(--border-color);
}

.accordion__header {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.25rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-align: left;
    color: var(--text-color);
}

.accordion__icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.accordion__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.accordion__content p {
    padding-bottom: 1.5rem;
    color: #495057;
    line-height: 1.7;
}

/* Active state for accordion */
.accordion__header.active .accordion__icon {
    transform: rotate(180deg);
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 992px) {
    .audience__container {
        grid-template-columns: 1fr;
    }
    .audience__visual {
        order: 2; /* Image goes below text on mobile */
    }
    .audience__content {
        order: 1;
    }
    .audience__title {
        text-align: center;
    }
}

/* --- GRADUATES SECTION --- */
.graduates {
    padding: 5rem 0;
    background-color: var(--background-color);
}

.graduates__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--white-color);
    padding: 2.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card__quote {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #495057;
    margin-bottom: 2rem;
    position: relative;
    font-style: italic;
}

.testimonial-card__quote::before {
    content: '“';
    position: absolute;
    top: -0.5rem;
    left: -1.5rem;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.1;
    font-family: var(--font-heading);
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-card__avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-card__author-info {
    flex-grow: 1;
}

.testimonial-card__name {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.testimonial-card__role {
    font-size: 0.9rem;
    color: #6c757d;
}

.testimonial-card__social {
    flex-shrink: 0;
    color: var(--text-color);
    opacity: 0.5;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.testimonial-card__social:hover {
    color: var(--primary-color);
    opacity: 1;
}


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

/* --- CONTACT SECTION --- */
.contact {
    padding: 5rem 0;
    background-color: var(--white-color);
}

.contact__container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.contact__title {
    text-align: left;
}

.contact__subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #495057;
    margin-bottom: 2rem;
}

.contact__address {
    font-style: normal;
}

.contact__address p {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact__address i {
    color: var(--primary-color);
}

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

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

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

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

.form-input {
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: var(--font-body);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(111, 66, 193, 0.2);
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}
.checkbox-group label {
    margin: 0;
}

.contact__button {
    margin-top: 1rem;
    border: none;
}

#form-status {
    margin-top: 1rem;
    text-align: center;
    font-weight: 500;
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 992px) {
    .contact__container {
        grid-template-columns: 1fr;
    }
    .contact__title {
        text-align: center;
    }
    .contact__info {
        text-align: center;
    }
    .contact__address p {
        justify-content: center;
    }
}

/* --- STATIC PAGES STYLES (privacy.html, terms.html etc.) --- */
.pages {
    padding: 4rem 0;
    background-color: var(--white-color);
}

.pages .container {
    max-width: 800px; /* Вужчий контейнер для кращої читабельності тексту */
}

.pages h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.pages h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.pages p, .pages li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #495057;
    margin-bottom: 1rem;
}

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

.pages a {
    text-decoration: underline;
}

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

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

/* --- COOKIE POP-UP --- */
.cookie-popup {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    max-width: 500px;
    background-color: var(--white-color);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    transform: translateY(200%); /* Сховано за замовчуванням */
    transition: transform 0.5s ease-in-out;
    z-index: 2000;
}

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

.cookie-popup__text {
    margin: 0;
    font-size: 0.9rem;
}

.cookie-popup__button {
    flex-shrink: 0;
    padding: 0.6rem 1rem;
}

@media (max-width: 768px) {
    .cookie-popup {
        flex-direction: column;
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        text-align: center;
    }
}