/* Глобальні змінні для кольорів та шрифтів */
:root {
    --primary-color: #3D5AFE; /* Яскравий синій */
    --secondary-color: #F5F7FA; /* Дуже світло-сірий */
    --accent-color: #FFD600; /* Теплий жовтий */
    --text-color: #263238; /* Темно-сірий */
    --light-text-color: #FFFFFF; /* Білий */
    --utility-color: #B0BEC5; /* Сірий для розділювачів */

    --font-headings: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;

    --container-width: 1200px;
    --container-padding: 20px;
}

/* Базові стилі для тіла документа */
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: #FFFFFF; /* Чистий білий фон для контрасту з секціями */
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden; /* Запобігання горизонтальному скролу */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 600;
    color: var(--text-color);
    margin-top: 0;
    margin-bottom: 0.75em;
}

h1 { font-size: 2.8em; line-height: 1.2; }
h2 { font-size: 2.2em; line-height: 1.25; }
h3 { font-size: 1.8em; line-height: 1.3; }
h4 { font-size: 1.4em; line-height: 1.35; }

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

a:hover,
a:focus {
    color: var(--accent-color);
    text-decoration: underline;
}

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

/* Утилітарні класи */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
    box-sizing: border-box;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Стилі для кнопок (базові, будуть розширені) */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-headings);
    font-weight: 500;
    font-size: 1em;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border: none;
    text-decoration: none; /* Для посилань, стилізованих як кнопки */
}

.btn--primary {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    box-shadow: 0 4px 15px rgba(61, 90, 254, 0.3);
}

.btn--primary:hover,
.btn--primary:focus {
    background-color: #304FFE; /* Трохи темніший синій */
    color: var(--light-text-color); /* Колір тексту не змінюється */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(61, 90, 254, 0.4);
    text-decoration: none;
}

.btn--accent {
    background-color: var(--accent-color);
    color: var(--text-color); /* Темний текст на жовтому фоні */
    box-shadow: 0 4px 15px rgba(255, 214, 0, 0.4);
}

.btn--accent:hover,
.btn--accent:focus {
    background-color: #FFCA00; /* Трохи темніший жовтий */
    color: var(--text-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 214, 0, 0.5);
    text-decoration: none;
}

/* === Header Styles === */
.header {
    background-color: rgba(255, 255, 255, 0.95); /* Напівпрозорий білий для ефекту "скла" */
    backdrop-filter: blur(10px); /* Ефект розмиття для підтримки в браузерах */
    -webkit-backdrop-filter: blur(10px); /* Для Safari */
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

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

.logo { /* Загальний клас для логотипа в хедері та футері */
    font-family: var(--font-headings);
    font-size: 1.8em; /* Розмір логотипа */
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.header__logo {
    /* Додаткові стилі для лого в хедері, якщо потрібно */
}

.nav__list {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav__item {
    margin-left: 25px; /* Відступи між пунктами меню */
}

.nav__link {
    font-family: var(--font-body);
    font-size: 1em; /* Розмір тексту навігації */
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav__link::after { /* Анімація підкреслення */
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav__link:hover,
.nav__link:focus,
.nav__link.active { /* Клас active буде додаватись JS для поточного розділу */
    color: var(--primary-color);
    text-decoration: none;
}

.nav__link:hover::after,
.nav__link:focus::after,
.nav__link.active::after {
    width: 100%;
}

.header__btn { /* Стилізація кнопки "Связаться" в хедері */
    margin-left: 25px;
    padding: 10px 22px; /* Трохи менші падінги для кнопки в хедері */
    font-size: 0.95em;
}

.header__burger-btn {
    display: none; /* Прихований на десктопі */
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 5px;
}
.header__burger-btn i {
    width: 28px;
    height: 28px;
}

/* === Main Content Padding === */
.main-content {
    padding-top: 80px; /* Відступ зверху, щоб контент не ховався під фіксований хедер. Висота хедера ~60-70px + запас */
}
/* Видаліть тимчасові стилі для section#id після наповнення контентом */


/* === Footer Styles === */
.footer {
    background-color: var(--text-color); /* Темний фон для футера */
    color: var(--secondary-color); /* Світлий текст на темному фоні */
    padding: 60px 0 20px;
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Адаптивні колонки */
    gap: 30px; /* Відстань між колонками */
    margin-bottom: 40px;
}

.footer__column--logo {
    /* Можна додати flex для центрування, якщо лого буде з іконкою */
}

.footer__logo {
    color: var(--accent-color); /* Лого в футері акцентного кольору */
    display: inline-block;
    margin-bottom: 15px;
}
.footer__logo:hover {
    color: var(--light-text-color);
}

.footer__tagline {
    font-size: 0.9em;
    color: var(--utility-color);
    margin-top: 0;
}

.footer__heading {
    font-family: var(--font-headings);
    font-size: 1.2em;
    font-weight: 600;
    color: var(--light-text-color);
    margin-bottom: 20px;
    position: relative;
}
/* Декоративна лінія під заголовками футера */
.footer__heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}


.footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__item {
    margin-bottom: 12px;
}

.footer__link {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer__link:hover,
.footer__link:focus {
    color: var(--accent-color);
    text-decoration: none;
    padding-left: 5px; /* Невеликий зсув тексту при ховері */
}

.footer__list--contact .footer__item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer__contact-icon {
    color: var(--accent-color);
    margin-right: 10px;
    width: 20px; /* Розмір іконок контактів */
    height: 20px;
    flex-shrink: 0;
}

.footer__bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--utility-color); /* Лінія над копірайтом */
    font-size: 0.9em;
    color: var(--utility-color);
}

/* Адаптивність для хедера (мобільне меню) */
@media (max-width: 992px) {
    .nav__list {
        display: none; /* Приховуємо навігацію */
        flex-direction: column;
        position: absolute;
        top: 100%; /* Розташування під хедером */
        left: 0;
        width: 100%;
        background-color: #fff; /* Фон для мобільного меню */
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        padding: 15px 0;
    }

    .nav__list.active { /* Клас для відображення мобільного меню */
        display: flex;
    }

    .nav__item {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }

    .nav__link {
        padding: 12px 20px;
        display: block; /* Щоб посилання займали всю ширину */
        width: 100%;
        box-sizing: border-box;
    }
    .nav__link::after {
        display: none; /* Прибираємо анімацію підкреслення в мобільному меню */
    }
    .nav__link:hover,
    .nav__link:focus,
    .nav__link.active {
        color: var(--light-text-color);
        background-color: var(--primary-color);
    }


    .header__btn {
        display: none; /* Приховуємо кнопку "Связаться" з основного меню, вона може бути в бургері або окремо */
    }
    /* Якщо кнопка "Связаться" потрібна в мобільному меню, її можна стилізувати як nav__item */
     .nav__item:last-child .nav__link { /* Окремий стиль для кнопки в мобільному меню */
        background-color: var(--accent-color);
        color: var(--text-color);
        margin: 10px 20px 0;
        border-radius: 5px;
        display: inline-block; /* або block, залежно від бажання */
        width: calc(100% - 40px);
    }
    .nav__item:last-child .nav__link:hover {
        background-color: #FFCA00;
        color: var(--text-color);
    }


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

@media (max-width: 768px) {
    .footer__container {
        grid-template-columns: 1fr; /* Одна колонка на мобільних */
        text-align: center; /* Центруємо текст в колонках */
    }
    .footer__column {
        margin-bottom: 30px;
    }
    .footer__column:last-child {
        margin-bottom: 0;
    }
    .footer__heading::after { /* Центруємо підкреслення заголовків */
        left: 50%;
        transform: translateX(-50%);
    }
    .footer__list--contact .footer__item {
        justify-content: center; /* Центруємо контакти */
    }
}

/* ... інші стилі ... */

.header--scrolled {
    padding: 10px 0; /* Зменшуємо падінги хедера при скролі */
    background-color: rgba(255, 255, 255, 0.98); /* Можна зробити фон менш прозорим */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.header--scrolled .logo {
    font-size: 1.6em; /* Трохи зменшуємо лого */
}
.header--scrolled .nav__link {
    font-size: 0.95em;
}

.no-scroll {
    overflow-y: hidden; /* Блокуємо скрол сторінки, коли мобільне меню відкрите */
}
/* ... (існуючі стилі) ... */

/* === Hero Section Styles === */
.hero {
    position: relative; /* Для позиціонування фону з частинками */
    min-height: 100vh; /* Займає всю висоту екрану */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Щоб анімації не виходили за межі */
    padding: 120px 0 80px; /* Верхній відступ враховує хедер, нижній для балансу */
    background-color: var(--secondary-color); /* Фоновий колір, якщо частинки не завантажаться */
}

.hero__particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Під контентом */
}

.hero__container {
    position: relative; /* Щоб контент був над частинками */
    z-index: 1;
    max-width: 900px; /* Обмеження ширини контенту в Hero */
}

.hero__content {
    /* Поки що додаткових стилів не потрібно, але залишаємо для майбутнього */
}

.hero__title {
    font-size: clamp(2.5em, 6vw, 4.5em); /* Адаптивний розмір шрифту */
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.2;
    margin-bottom: 0.75em; /* Збільшено відступ */
}

.hero__title-line {
    display: block; /* Кожен рядок заголовка з нового рядка */
    overflow: hidden; /* Для анімації появи тексту */
}
.hero__title-line > span { /* Для анімації GSAP */
    display: inline-block;
}


.hero__title-highlight {
    color: var(--primary-color); /* Акцентне слово в заголовку */
    position: relative;
    display: inline-block;
}
/* Декоративне підкреслення для акцентного слова */
.hero__title-highlight::after {
    content: '';
    position: absolute;
    bottom: -2px; /* Розташування підкреслення */
    left: 0;
    width: 100%;
    height: 4px; /* Товщина підкреслення */
    background-color: var(--accent-color);
    transform: scaleX(0); /* Початковий стан для анімації */
    transform-origin: left;
    transition: transform 0.5s ease 0.8s; /* Затримка для послідовної анімації */
}
/* Анімація підкреслення (можна активувати через JS або залишити CSS transition) */
.hero--animated .hero__title-highlight::after { /* Клас для активації анімації */
    transform: scaleX(1);
}


.hero__subtitle {
    font-size: clamp(1.1em, 2.5vw, 1.3em); /* Адаптивний розмір */
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 2em; /* Збільшено відступ */
    max-width: 700px; /* Обмеження ширини підзаголовка */
    margin-left: auto;
    margin-right: auto;
    opacity: 0; /* Початковий стан для анімації */
    transform: translateY(20px); /* Початковий стан для анімації */
}

.hero__cta-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Відстань між кнопками */
    flex-wrap: wrap; /* Перенесення кнопок на новий рядок на малих екранах */
    opacity: 0; /* Початковий стан для анімації */
    transform: translateY(20px); /* Початковий стан для анімації */
}

.hero__cta {
    padding: 15px 35px; /* Збільшені падінги для головних кнопок */
    font-size: 1.1em;
    display: flex; /* Для іконки всередині кнопки */
    align-items: center;
    gap: 8px; /* Відстань між текстом та іконкою */
}
.hero__cta .btn__icon { /* Стиль для іконки в кнопці */
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}
.hero__cta:hover .btn__icon {
    transform: translateX(4px); /* Рух іконки при ховері */
}


/* Стиль для другорядної кнопки (outline) */
.btn--outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

.btn--outline:hover,
.btn--outline:focus {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(61, 90, 254, 0.2);
    text-decoration: none;
}

/* Адаптивність для Hero */
@media (max-width: 768px) {
    .hero {
        padding: 100px 0 60px;
        min-height: auto; /* На мобільних не обов'язково на весь екран */
    }
    .hero__title {
        /* font-size: 2.8em; вже адаптивний через clamp */
    }
    .hero__subtitle {
        /* font-size: 1.1em; вже адаптивний через clamp */
        margin-bottom: 1.8em;
    }
    .hero__cta-container {
        flex-direction: column; /* Кнопки одна під одною */
        gap: 15px;
    }
    .hero__cta {
        width: 100%; /* Кнопки на всю ширину */
        max-width: 300px; /* Але не безкінечно широкі */
        justify-content: center; /* Центрування тексту та іконки */
    }
}

/* Прибираємо тимчасовий відступ з main-content, бо hero тепер має свій */
.main-content {
    padding-top: 0; /* Герой секція тепер перша і займає місце хедера */
}
/* ... (існуючі стилі) ... */

/* === Utility Classes (можна винести вгору файлу) === */
.section-padding {
    padding-top: 80px;
    padding-bottom: 80px;
}

.section-title {
    font-size: clamp(2em, 5vw, 3em); /* Адаптивний розмір */
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5em;
    line-height: 1.3;
}
.section-title .highlight {
    color: var(--primary-color);
}

.section-subtitle {
    font-size: clamp(1.1em, 2.5vw, 1.25em);
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1.5em;
    max-width: 750px; /* Обмеження ширини для кращої читабельності */
}

/* === About Platform Section Styles === */
.about-platform {
    background-color: #FFFFFF; /* Білий фон для цієї секції */
}

.about-platform__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Співвідношення колонок: зображення менше, текст більше */
    gap: 50px; /* Відстань між колонками */
    align-items: center;
}

.about-platform__image-wrapper {
    /* opacity: 0; transform: translateX(-50px); Початковий стан для GSAP */
    /* Додано через JS */
}

.about-platform__image {
    width: 100%;
    max-width: 500px; /* Обмеження максимальної ширини зображення */
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.about-platform__content {
   /* opacity: 0; transform: translateX(50px); Початковий стан для GSAP */
   /* Додано через JS */
}

.about-platform__title {
    text-align: left; /* Заголовок секції вирівняний по лівому краю */
}

.about-platform__subtitle {
    margin-bottom: 1.5em;
    text-align: left;
    max-width: none; /* Скасовуємо обмеження з .section-subtitle, якщо потрібно */
}

.about-platform__text {
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 2em;
    color: #546E7A; /* Трохи світліший текст для опису */
}

.about-platform__features {
    margin-top: 30px;
    margin-bottom: 40px;
    display: grid;
    gap: 25px;
}

.feature-item {
    display: flex;
    align-items: flex-start; /* Іконка і текст вирівняні по верху */
    gap: 20px; /* Відстань між іконкою та текстом */
    background-color: var(--secondary-color);
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
   /* opacity: 0; transform: translateY(30px); Початковий стан для GSAP */
   /* Додано через JS */
}

.feature-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(61, 90, 254, 0.15);
}

.feature-item__icon-wrapper {
    flex-shrink: 0;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}
.feature-item:hover .feature-item__icon-wrapper {
    background-color: var(--accent-color);
    color: var(--text-color);
}

.feature-item__icon {
    width: 24px;
    height: 24px;
}

.feature-item__text-content {
    /* Займає решту місця */
}

.feature-item__title {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.3em;
}

.feature-item__description {
    font-size: 0.95em;
    line-height: 1.6;
    color: #546E7A; /* Колір тексту опису фічі */
    margin-bottom: 0;
}

.about-platform__cta {
    /* opacity: 0; transform: translateY(30px); Початковий стан для GSAP */
    /* Додано через JS */
    display: inline-block; /* Щоб кнопка не розтягувалась на всю ширину батьківського блоку */
}


/* Адаптивність для секції "О платформе" */
@media (max-width: 992px) { /* Планшети */
    .about-platform__grid {
        grid-template-columns: 1fr; /* Одна колонка */
        gap: 40px;
    }
    .about-platform__image-wrapper {
        order: 1; /* Зображення знизу на мобільних */
        margin: 0 auto; /* Центрування зображення */
    }
    .about-platform__content {
        order: 2; /* Текст зверху */
        text-align: center; /* Центрування тексту контенту на мобільних */
    }
    .about-platform__title,
    .about-platform__subtitle {
        text-align: center; /* Центрування заголовка та підзаголовка */
    }
     .about-platform__features {
        grid-template-columns: 1fr; /* Фічі одна під одною */
    }
    .feature-item {
        text-align: left; /* Текст в фічах залишаємо по лівому краю для читабельності */
    }
    .about-platform__cta {
        margin: 0 auto; /* Центрування кнопки */
    }
}

@media (max-width: 768px) { /* Мобільні */
    .section-padding {
        padding-top: 60px;
        padding-bottom: 60px;
    }
     .about-platform__image-wrapper {
        order: 2; /* Зображення знизу на мобільних */
    }
    .about-platform__content {
        order: 1; /* Текст зверху */
    }
    .feature-item {
        flex-direction: column; /* Іконка над текстом */
        align-items: center; /* Центрування елементів */
        text-align: center; /* Центрування тексту */
    }
    .feature-item__icon-wrapper {
        margin-bottom: 15px; /* Відступ під іконкою */
    }
}

/* ... (існуючі стилі) ... */

/* === Utility for Centered Section Header === */
.section-header {
    margin-bottom: 50px;
}
.section-header.text-center .section-title,
.section-header.text-center .section-subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Додатковий стиль для маленьких кнопок */
.btn--small {
    padding: 8px 18px;
    font-size: 0.9em;
}
.btn__icon--small {
    width: 16px;
    height: 16px;
}


/* === Directions Section Styles === */
.directions-section {
    background-color: var(--secondary-color); /* Світло-сірий фон */
}

.directions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Адаптивні колонки */
    gap: 30px;
}

.direction-card {
    background-color: #FFFFFF; /* Білий фон для карток */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    /* opacity: 0; transform: translateY(50px); Початковий стан для GSAP */
}

.direction-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(61, 90, 254, 0.12);
}

.direction-card__icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto; /* Центрування іконки */
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.direction-card:hover .direction-card__icon-wrapper {
    background-color: var(--accent-color);
    color: var(--text-color);
    transform: scale(1.1) rotate(10deg);
}

.direction-card__icon {
    width: 32px;
    height: 32px;
}

.direction-card__title {
    font-size: 1.5em; /* Розмір заголовка картки */
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 15px;
}

.direction-card__description {
    font-size: 0.95em;
    line-height: 1.6;
    color: #546E7A; /* Колір тексту опису */
    margin-bottom: 25px;
    flex-grow: 1; /* Щоб опис займав доступне місце, вирівнюючи кнопки по низу */
}

.direction-card__link {
    margin-top: auto; /* Притискає кнопку до низу картки */
    display: inline-block; /* Для правильного відображення */
}
.direction-card__link .btn__icon { /* Специфічність для іконки в кнопці картки */
    transition: transform 0.3s ease;
}
.direction-card__link:hover .btn__icon {
    transform: translateX(3px);
}

/* Адаптивність для секції "Направления" */
@media (max-width: 768px) {
    .directions-grid {
        grid-template-columns: 1fr; /* Одна колонка на мобільних */
        gap: 25px;
    }
    .direction-card {
        padding: 25px;
    }
    .direction-card__title {
        font-size: 1.3em;
    }
}

/* ... (існуючі стилі) ... */

/* Стилі для великих кнопок, якщо ще не визначено */
.btn--large {
    padding: 18px 40px;
    font-size: 1.15em;
}
.btn--large .btn__icon {
    width: 22px;
    height: 22px;
}

/* === Formats Section Styles === */
.formats-section {
    background-color: #FFFFFF; /* Білий фон */
}

.formats-list {
    display: grid;
    gap: 25px; /* Відстань між елементами списку */
    max-width: 900px; /* Обмеження ширини списку для кращої читабельності */
    margin: 0 auto 50px auto; /* Центрування та нижній відступ */
}

.format-item {
    background-color: var(--secondary-color); /* Світло-сірий фон для елементів */
    border-radius: 10px;
    padding: 25px 30px;
    display: flex;
    align-items: center;
    gap: 25px;
    border: 1px solid transparent;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    /* opacity: 0; transform: scale(0.9); Початковий стан для GSAP */
}

.format-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.07);
}

.format-item__icon-area {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.format-item:hover .format-item__icon-area {
    background-color: var(--accent-color);
    color: var(--text-color);
    transform: rotate(-10deg) scale(1.1);
}

.format-item__icon {
    width: 28px;
    height: 28px;
}

.format-item__content {
    flex-grow: 1;
}

.format-item__title {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.4em;
}

.format-item__description {
    font-size: 0.95em;
    line-height: 1.6;
    color: #546E7A;
    margin-bottom: 0;
}

.format-item__arrow {
    flex-shrink: 0;
    color: var(--primary-color);
    opacity: 0.5;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.format-item:hover .format-item__arrow {
    opacity: 1;
    transform: translateX(5px);
}
.format-item__arrow i {
    width: 28px;
    height: 28px;
}

.formats-section__cta-area {
    margin-top: 30px; /* Відступ перед кнопкою */
}

/* Адаптивність для секції "Форматы" */
@media (max-width: 768px) {
    .format-item {
        padding: 20px;
        gap: 20px;
    }
    .format-item__icon-area {
        width: 50px;
        height: 50px;
    }
    .format-item__icon {
        width: 24px;
        height: 24px;
    }
    .format-item__title {
        font-size: 1.25em;
    }
    .format-item__arrow {
        display: none; /* Можна приховати стрілку на мобільних для економії місця */
    }
}

@media (max-width: 576px) {
    .format-item {
        flex-direction: column; /* Іконка зверху, потім контент */
        text-align: center;
        align-items: center; /* Центрування іконки */
    }
    .format-item__icon-area {
        margin-bottom: 15px;
    }
}

/* ... (існуючі стилі) ... */

/* === Audience Section Styles === */
.audience-section {
    background-color: var(--secondary-color); /* Світло-сірий фон */
}

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

.audience-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 35px 30px; /* Трохи більше вертикального падінгу */
    text-align: left; /* Вирівнювання тексту по лівому краю для кращої читабельності */
    border: 2px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative; /* Для псевдоелементів, якщо знадобляться */
    overflow: hidden; /* Щоб псевдоелементи не виходили за межі */
    /* opacity: 0; transform: translateY(40px) rotateX(-10deg); Початковий стан для GSAP */
}

.audience-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

/* Декоративний елемент (можна додати для візуального інтересу) */
.audience-card::before {
    content: "";
    position: absolute;
    top: -50px;
    left: -50px;
    width: 100px;
    height: 100px;
    background-color: var(--primary-color);
    opacity: 0.07;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.4s ease-out;
    z-index: 0;
}
.audience-card:hover::before {
    transform: scale(2.5);
}


.audience-card__icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 10px; /* Трохи менш круглий */
    background-color: var(--accent-color); /* Використовуємо акцентний колір для іконок тут */
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    position: relative; /* Щоб контент був над псевдоелементом */
    z-index: 1;
}
.audience-card:hover .audience-card__icon-wrapper {
    transform: rotate(15deg) scale(1.1);
    background-color: var(--primary-color);
    color: var(--light-text-color);
}

.audience-card__icon {
    width: 30px;
    height: 30px;
}

.audience-card__title {
    font-size: 1.35em;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.audience-card__description {
    font-size: 0.95em;
    line-height: 1.65;
    color: #546E7A;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}


/* Адаптивність для секції "Для кого" */
@media (max-width: 768px) {
    .audience-grid {
        grid-template-columns: 1fr; /* Одна колонка */
    }
    .audience-card {
        padding: 30px 25px;
    }
    .audience-card__title {
        font-size: 1.25em;
    }
}

/* ... (існуючі стилі) ... */

/* === Contact Section Styles === */
.contact-section {
    background-color: #FFFFFF; /* Білий фон */
}

.contact-form-wrapper {
    max-width: 750px; /* Обмеження ширини форми */
    margin: 0 auto;
    background-color: var(--secondary-color); /* Світло-сірий фон для самої форми */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    /* opacity: 0; transform: scale(0.95); Початковий стан для GSAP */
}

.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Два поля в ряд */
    gap: 25px;
    margin-bottom: 25px;
}

.contact-form__group {
    margin-bottom: 25px;
    position: relative; /* Для повідомлень про помилки */
}
.contact-form__group:last-of-type { /* Для групи з капчею та кнопкою */
    margin-bottom: 0;
}


.contact-form__label {
    display: block;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 8px;
    font-size: 0.95em;
}
.contact-form__label .contact-form__required {
    color: var(--primary-color); /* Колір зірочки */
    font-weight: 700;
}

.contact-form__input,
.contact-form__textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #CBD5E0; /* Світло-сіра рамка */
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1em;
    color: var(--text-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box; /* Щоб падінги не збільшували розмір */
}

.contact-form__input:focus,
.contact-form__textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(61, 90, 254, 0.2);
}

.contact-form__input.is-invalid,
.contact-form__textarea.is-invalid {
    border-color: #E53E3E; /* Червоний колір для помилки */
}
.contact-form__input.is-invalid:focus,
.contact-form__textarea.is-invalid:focus {
     box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.2);
}


.contact-form__textarea {
    resize: vertical; /* Дозволити змінювати розмір тільки по вертикалі */
    min-height: 120px;
}

.contact-form__captcha {
    /* Стилі для групи з капчею, якщо потрібні */
}
.contact-form__captcha-question {
    font-weight: 600;
    color: var(--primary-color);
}
.contact-form__input--captcha {
    max-width: 150px; /* Обмеження ширини поля для капчі */
}

.contact-form__error-message {
    display: block;
    font-size: 0.85em;
    color: #E53E3E; /* Червоний */
    margin-top: 5px;
    min-height: 1.2em; /* Резервуємо місце, щоб форма не "стрибала" */
}

.contact-form__response-message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95em;
    text-align: center;
    display: none; /* Ховаємо спочатку */
    transition: opacity 0.3s ease;
}
.contact-form__response-message--success {
    background-color: #C6F6D5; /* Світло-зелений */
    color: #2F855A; /* Темно-зелений */
    border: 1px solid #9AE6B4;
    display: block; /* Показуємо */
}
.contact-form__response-message--error {
    background-color: #FED7D7; /* Світло-червоний */
    color: #C53030; /* Темно-червоний */
    border: 1px solid #FEB2B2;
    display: block; /* Показуємо */
}


.contact-form__submit-area {
    text-align: center; /* Кнопка по центру */
    margin-top: 20px;
}
.contact-form__submit-btn {
    /* Стилі для кнопки вже є (.btn, .btn--primary, .btn--large) */
    min-width: 250px; /* Мінімальна ширина кнопки */
}
.contact-form__submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


/* Адаптивність для контактної форми */
@media (max-width: 768px) {
    .contact-form-wrapper {
        padding: 30px;
    }
    .contact-form__row {
        grid-template-columns: 1fr; /* Поля в один стовпець */
        gap: 0; /* Забираємо gap, бо відступи вже є у .contact-form__group */
        /* margin-bottom: 0; Залишаємо, бо він потрібен для відступу перед наступним полем */
    }
    /* Якщо поля в один стовпець, то нижній відступ для групи не потрібен перед наступною групою в тому ж ряду */
    .contact-form__row .contact-form__group {
        margin-bottom: 25px;
    }
}

@media (max-width: 576px) {
    .contact-form-wrapper {
        padding: 20px;
    }
     .contact-form__submit-btn {
        width: 100%;
        min-width: auto;
    }
}
/* ... (існуючі стилі) ... */

/* === Cookie Popup Styles === */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(38, 50, 56, 0.95); /* var(--text-color) з прозорістю */
    color: var(--light-text-color);
    padding: 20px 0;
    z-index: 2000; /* Має бути над усім іншим контентом */
    box-shadow: 0 -2px 15px rgba(0,0,0,0.2);
    transform: translateY(100%); /* Початково прихований знизу */
    transition: transform 0.5s ease-in-out;
    display: none; /* Початково повністю прихований, JS покаже якщо треба */
}

.cookie-popup.show {
    display: block; /* Робимо видимим для анімації */
    transform: translateY(0%);
}

.cookie-popup__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-popup__text {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.5;
}

.cookie-popup__link {
    color: var(--accent-color); /* Жовтий для посилання */
    text-decoration: underline;
}
.cookie-popup__link:hover {
    color: var(--light-text-color);
}

.cookie-popup__btn {
    flex-shrink: 0; /* Щоб кнопка не стискалася */
}

@media (max-width: 768px) {
    .cookie-popup__container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .cookie-popup__text {
        font-size: 0.85em;
    }
    .cookie-popup__btn {
        width: 100%;
        max-width: 200px;
    }
}

/* ... (існуючі стилі) ... */

/* === Policy Page Styles === */
.pages { /* Відступ зверху для контенту сторінки політики, щоб не ховався під фіксований хедер */
    padding-top: 80px; /* Така ж висота, як у .main-content на головній, або висота хедера */

}

.pages .container {
  
    max-width: 800px; /* Обмеження ширини контенту для кращої читабельності */
    padding-top: 40px; /* Додатковий відступ зверху всередині контейнера */
    padding-bottom: 40px; /* Додатковий відступ знизу всередині контейнера */
}

.pages h1 {
    font-size: clamp(2.2em, 5vw, 3em); /* Розмір як у section-title */
    color: var(--primary-color);
    margin-bottom: 1em;
    text-align: center; /* Заголовок сторінки по центру */
}

.pages h2 {
    font-size: clamp(1.6em, 4vw, 2.2em); /* Розмір як у h2 на головній */
    color: var(--text-color);
    margin-top: 1.8em;
    margin-bottom: 0.8em;
    padding-bottom: 0.3em;
    border-bottom: 2px solid var(--accent-color); /* Підкреслення акцентним кольором */
    display: inline-block; /* Щоб border-bottom був по ширині тексту */
}

.pages p,
.pages li {
    font-size: 1.05em;
    line-height: 1.75;
    color: var(--text-color); /* Трохи темніший, ніж #546E7A */
    margin-bottom: 1em;
}

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

.pages ul.policy-list { /* Додав клас для можливості специфічних стилів списків */
    list-style: none; /* Прибираємо стандартні маркери */
    padding-left: 0;
}

.pages ul.policy-list li {
    padding-left: 25px; /* Відступ для власного маркера */
    position: relative;
    margin-bottom: 0.8em;
}

.pages ul.policy-list li::before {
    content: ''; /* Кастомний маркер */
    position: absolute;
    left: 0;
    top: 0.5em; /* Вирівнювання по центру тексту */
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    transform: translateY(-50%); /* Точне центрування */
}

.pages a { /* Стилі для посилань на сторінках політик */
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: var(--accent-color); /* Підкреслення акцентним кольором */
    text-underline-offset: 3px; /* Відстань підкреслення від тексту */
    transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.pages a:hover,
.pages a:focus {
    color: var(--accent-color);
    text-decoration-color: var(--primary-color);
}