/* ЕТАП 0: ГЛОБАЛЬНІ СТИЛІ */

/* Підключення шрифтів (вже зроблено в HTML через <link>) */

:root {
    /* Палітра кольорів */
    --bg-color: #FFFFFF;
    --light-bg: #f5f6fa;
    --text-color: #2d3436;
    --primary-color: #0984e3;
    --primary-hover: #0073cc;
    --secondary-color: #636e72;
    
    /* Шрифти */
    --font-body: 'Roboto', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    
    /* Інше */
    --container-width: 1140px;
    --border-radius: 8px;
    --transition-speed: 0.3s ease;
}

/* Базові скидання та налаштування */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Базовий розмір для mobile-first */
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed);
}

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

ul {
    list-style: none;
}

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

/* Клас контейнера */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
}

/* -------------------- */
/* ЕТАП 1: СТИЛІ ХЕДЕРА */
/* -------------------- */

.header {
    background-color: var(--bg-color);
    border-bottom: 1px solid #dfe6e9;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

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

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

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

/* Мобільне меню: кнопка "бургер" */
.header__toggle {
    display: block; /* Показано на мобільних */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-color);
}
.header__toggle i {
    width: 24px;
    height: 24px;
}

/* Мобільне меню: навігація (схована за замовчуванням) */
.header__nav {
    display: none; /* Сховано на мобільних */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    border-bottom: 1px solid #dfe6e9;
    padding: 1rem 0;
}

.header__nav--active {
    display: block; /* Показати при кліку на бургер */
}

.header__list {
    display: flex;
    flex-direction: column; /* Вертикально на мобільних */
    align-items: center;
    gap: 1rem;
}

.header__link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.header__link:hover {
    color: var(--primary-color);
    background-color: var(--light-bg);
}

/* CTA Кнопка в хедері */
.header__link--cta {
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.5rem 1.5rem;
}

.header__link--cta:hover {
    background-color: var(--primary-hover);
    color: #fff;
}

/* -------------------- */
/* ЕТАП 2: СТИЛІ ФУТЕРА */
/* -------------------- */

.footer {
    background-color: var(--light-bg);
    border-top: 1px solid #dfe6e9;
    padding: 4rem 0 0;
    color: var(--secondary-color);
}

.footer__container {
    display: grid;
    /* Mobile-first: 1 колонка */
    grid-template-columns: 1fr; 
    gap: 2.5rem;
}

.footer__logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    display: inline-block;
}

.footer__description {
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 300px;
}

.footer__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

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

.footer__link {
    font-size: 0.95rem;
    color: var(--secondary-color);
}

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

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

.footer__item--contact {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--primary-color);
}

.footer__address {
    font-size: 0.95rem;
    font-style: normal;
    line-height: 1.5;
}

.footer__bottom {
    border-top: 1px solid #dfe6e9;
    padding: 1.5rem 0;
    margin-top: 3rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--secondary-color);
}

/* ----------------------------- */
/* АДАПТИВНІСТЬ (Desktop) */
/* ----------------------------- */

/* Планшети */
@media (min-width: 768px) {
    .footer__container {
        /* 2 або 4 колонки */
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Десктопи */
@media (min-width: 1024px) {
    html {
        font-size: 17px; /* Трохи збільшуємо шрифт на десктопі */
    }

    /* Хедер: перехід до горизонтального меню */
    .header__toggle {
        display: none; /* Ховаємо бургер */
    }

    .header__nav {
        display: block; /* Показуємо навігацію */
        position: static;
        width: auto;
        background: none;
        border: none;
        padding: 0;
    }
    
    .header__list {
        flex-direction: row; /* Горизонтально на десктопі */
        gap: 0.5rem;
    }
    
    .header__item:last-child {
        margin-left: 1rem;
    }

    /* Футер: 4 колонки */
    .footer__container {
        grid-template-columns: 2fr 1fr 1fr 1.5fr; /* Налаштовуємо пропорції колонок */
        gap: 2rem;
    }
}

/* -------------------- */
/* ГЛОБАЛЬНІ СТИЛІ: КНОПКИ (Додано) */
/* -------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-speed);
    border: 2px solid transparent;
}

.btn--primary {
    background-color: var(--primary-color);
    color: #fff;
}
.btn--primary:hover {
    background-color: var(--primary-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(9, 132, 227, 0.3);
}

.btn--secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn--secondary:hover {
    background-color: var(--light-bg);
    color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn__icon {
    width: 20px;
    height: 20px;
}


/* -------------------- */
/* ЕТАП 3: СТИЛІ HERO */
/* -------------------- */

.hero {
    background-color: var(--bg-color); /* Або var(--light-bg) для виділення */
    padding: 4rem 0;
    overflow: hidden; /* Важливо для AOS */
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr; /* 1 колонка на мобільних */
    gap: 2rem;
    align-items: center;
}

.hero__content {
    text-align: center; /* Центрування на мобільних */
}

.hero__title {
    font-size: 2.5rem; /* Розмір для мобільних */
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero__title--highlight {
    color: var(--primary-color);
}

.hero__description {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero__description--bold {
    font-weight: 500;
    color: var(--text-color);
}

.hero__actions {
    display: flex;
    flex-direction: column; /* Кнопки одна під одною на мобільних */
    gap: 1rem;
    align-items: center;
}

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

.hero__image {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}


/* ----------------------------- */
/* АДАПТИВНІСТЬ (Hero) */
/* ----------------------------- */

@media (min-width: 576px) {
    /* На невеликих екранах кнопки в ряд */
    .hero__actions {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .hero__title {
        font-size: 3rem;
    }
}

/* Десктопи */
@media (min-width: 1024px) {
    .hero {
        padding: 6rem 0;
    }

    /* 2 колонки */
    .hero__container {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .hero__content {
        text-align: left; /* Вирівнювання по лівому краю */
    }

    .hero__title {
        font-size: 3.5rem;
    }

    .hero__actions {
        justify-content: flex-start; /* Кнопки по лівому краю */
    }
}

/* -------------------- */
/* ГЛОБАЛЬНІ СТИЛІ: СЕКЦІЇ (Додано) */
/* -------------------- */
/*
 Ми будемо використовувати ці класи для всіх секцій, 
 щоб зберігати візуальну консистентність
*/

.section-eyebrow {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.05rem;
    color: var(--secondary-color);
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* -------------------- */
/* ЕТАП 3: СТИЛІ ABOUT  */
/* -------------------- */

.about {
    padding: 4rem 0;
    background-color: var(--light-bg); /* Чергуємо фон для ритму */
    overflow: hidden;
}

.about__container {
    display: grid;
    grid-template-columns: 1fr; /* 1 колонка на мобільних */
    gap: 2rem;
    align-items: center;
}

.about__image-wrapper {
    display: flex;
    justify-content: center;
}

.about__image {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.about__features-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.about__feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.about__feature-icon {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.about__feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.about__feature-text p {
    font-size: 0.95rem;
    color: var(--secondary-color);
    line-height: 1.5;
}

/* ----------------------------- */
/* АДАПТИВНІСТЬ (About) */
/* ----------------------------- */

@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
}

/* Десктопи */
@media (min-width: 1024px) {
    .about {
        padding: 6rem 0;
    }

    /* 2 колонки */
    .about__container {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    /* На десктопі ми міняємо порядок, 
      щоб зображення було ліворуч (grid-auto-flow: dense 
      або order, але тут простіше так)
    */
}

/* ----------------------- */
/* ЕТАП 3: СТИЛІ FEATURES  */
/* ----------------------- */

.features {
    padding: 4rem 0;
    background-color: var(--bg-color); /* Знову білий фон */
    overflow: hidden;
}

.features__header {
    text-align: center;
    max-width: 700px; /* Обмежуємо ширину опису */
    margin: 0 auto 3rem; /* Центруємо */
}

/* Сітка карток */
.features__grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 колонка на мобільних */
    gap: 1.5rem;
}

/* Стиль картки */
.feature-card {
    background-color: #fff;
    border: 1px solid #dfe6e9;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-speed);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
}

.feature-card__icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
}

.feature-card__icon {
    width: 28px;
    height: 28px;
}

.feature-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.feature-card__description {
    font-size: 0.95rem;
    color: var(--secondary-color);
    line-height: 1.6;
}


/* ----------------------------- */
/* АДАПТИВНІСТЬ (Features) */
/* ----------------------------- */

@media (min-width: 576px) {
    /* 2 колонки на планшетах */
    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features {
        padding: 6rem 0;
    }

    /* 3 колонки на десктопі */
    .features__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* -------------------- */
/* ЕТАП 3: СТИЛІ CASES  */
/* -------------------- */

.cases {
    padding: 4rem 0;
    background-color: var(--light-bg); /* Знову світлий фон */
    overflow: hidden;
}

.cases__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

/* Кнопки табів */
.cases__tabs-controls {
    display: flex;
    flex-direction: column; /* На мобільних */
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.cases__tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    
    padding: 0.85rem 1.5rem;
    border-radius: var(--border-radius);
    border: 2px solid #dfe6e9;
    background-color: #fff;
    color: var(--secondary-color);
    
    cursor: pointer;
    transition: all var(--transition-speed);
}

.cases__tab-icon {
    width: 20px;
    height: 20px;
}

.cases__tab-btn:hover {
    background-color: var(--light-bg);
    color: var(--text-color);
    border-color: #b2bec3;
}

/* Активний таб */
.cases__tab-btn--active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}
.cases__tab-btn--active:hover {
    background-color: var(--primary-hover);
    color: #fff;
    border-color: var(--primary-hover);
}

/* Контент табів */
.cases__tab-panel {
    display: none; /* Всі панелі сховані за замовчуванням */
    background-color: #fff;
    border: 1px solid #dfe6e9;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    
    /* Анімація появи */
    animation: fadeIn 0.5s ease;
}

.cases__tab-panel--active {
    display: block; /* Активна панель показана */
}

/* Анімація */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Вміст таба (приклад) */
.case-example {
    display: grid;
    grid-template-columns: 1fr; /* 1 колонка на мобільних */
    gap: 1.5rem;
    padding: 2rem;
}

.case-example__title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.case-example__text {
    font-size: 1rem;
    color: var(--secondary-color);
    line-height: 1.7;
}

.case-example__col--result {
    border-top: 2px dashed #dfe6e9; /* Розділювач на мобільних */
    padding-top: 1.5rem;
}

.case-example__list {
    list-style: disc; /* Використовуємо маркери */
    padding-left: 1.5rem;
    color: var(--secondary-color);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ----------------------------- */
/* АДАПТИВНІСТЬ (Cases) */
/* ----------------------------- */

@media (min-width: 768px) {
    /* Таби в ряд */
    .cases__tabs-controls {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
        background-color: #fff;
        border-radius: var(--border-radius);
        padding: 0.5rem;
        border: 1px solid #dfe6e9;
        display: inline-flex; /* Щоб центpyвати */
        left: 50%;
        position: relative;
        transform: translateX(-50%);
    }

    .cases__tab-btn {
        border: 2px solid transparent; /* Прибираємо рамки, бо є загальна */
    }

    .cases__tab-btn:hover {
        background-color: var(--light-bg);
        color: var(--text-color);
    }
    
    .cases__tab-btn--active {
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    /* Приклад в 2 колонки */
    .case-example {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        padding: 2.5rem;
    }
    
    .case-example__col--result {
        border-top: none; /* Прибираємо розділювач */
        padding-top: 0;
        border-left: 2px dashed #dfe6e9; /* Додаємо вертикальний */
        padding-left: 2rem;
    }
}

@media (min-width: 1024px) {
    .cases {
        padding: 6rem 0;
    }
}

/* -------------------- */
/* ГЛОБАЛЬНІ СТИЛІ: КНОПКИ (Додано) */
/* -------------------- */

/* Додаємо модифікатор розміру для кнопки */
.btn--large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}


/* -------------------- */
/* ЕТАП 3: СТИЛІ START  */
/* -------------------- */

.start {
    padding: 4rem 0;
    background-color: var(--bg-color); /* Білий фон */
    overflow: hidden;
}

.start__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.start__steps-wrapper {
    display: grid;
    grid-template-columns: 1fr; /* 1 колонка на мобільних */
    gap: 2.5rem 1.5rem; /* Збільшуємо відступ між кроками на мобільних */
}

.start-step {
    position: relative;
    padding: 2rem;
    border: 1px solid #dfe6e9;
    border-radius: var(--border-radius);
    background-color: #fff;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.start-step__number {
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--primary-color);
    opacity: 0.15;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    line-height: 1;
}

.start-step__title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    position: relative; /* Щоб був над номером */
}

.start-step__description {
    font-size: 0.95rem;
    color: var(--secondary-color);
    line-height: 1.6;
    position: relative;
}

/* Фінальний CTA */
.start__cta {
    text-align: center;
    margin-top: 3rem;
}


/* ----------------------------- */
/* АДАПТИВНІСТЬ (Start) */
/* ----------------------------- */

@media (min-width: 768px) {
    /* 3 колонки */
    .start__steps-wrapper {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .start {
        padding: 6rem 0;
    }

    .start-step {
        padding: 2.5rem;
        text-align: left; /* Вирівнюємо по лівому краю на десктопі */
    }

    .start-step__number {
        font-size: 3.5rem;
    }
    
    .start-step__title {
        margin-top: 1rem; /* Відступ від цифри */
    }
}

/* ---------------------- */
/* ЕТАП 4: СТИЛІ CONTACT  */
/* ---------------------- */

.contact {
    padding: 4rem 0;
    background-color: var(--light-bg); /* Світлий фон */
    overflow: hidden;
}

.contact__container {
    display: grid;
    grid-template-columns: 1fr; /* 1 колонка на мобільних */
    gap: 3rem;
    align-items: center;
}

.contact__info {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.contact__info-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.contact__info-text {
    font-size: 0.95rem;
    color: var(--secondary-color);
    line-height: 1.6;
}
.contact__info-text a {
    text-decoration: underline;
}

/* Стилі форми */
.contact__form-wrapper {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.contact-form__title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group__label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.form-group__input {
    width: 100%;
    padding: 0.85rem 1rem;
    padding-left: 2.75rem; /* Місце для іконки */
    font-size: 1rem;
    font-family: var(--font-body);
    border: 1px solid #dfe6e9;
    border-radius: var(--border-radius);
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.form-group__input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(9, 132, 227, 0.1);
}

.form-group__icon {
    position: absolute;
    left: 1rem;
    top: calc(50% + 5px); /* Вирівнювання іконки */
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--secondary-color);
    opacity: 0.7;
}

.form-group__input:focus + .form-group__icon {
    color: var(--primary-color);
    opacity: 1;
}

/* Капча */
.form-group--captcha .form-group__input {
    padding-left: 1rem; /* Капчі не потрібна іконка зліва */
}
.form-group--captcha .form-group__icon {
    left: auto;
    right: 1rem; /* Іконка праворуч */
}

/* Чекбокс */
.form-group--checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.form-group__checkbox {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--primary-color); /* Сучасна стилізація чекбоксу */
}

.form-group__checkbox-label {
    font-size: 0.9rem;
    color: var(--secondary-color);
    line-height: 1.5;
    margin: 0;
}
.form-group__checkbox-label a {
    text-decoration: underline;
}

/* Кнопка */
.contact-form__submit {
    width: 100%;
}

/* Повідомлення про помилку (JS) */
.form-error {
    font-size: 0.9rem;
    color: #d63031; /* Червоний */
    text-align: center;
    margin-bottom: 1rem;
}

/* Повідомлення про успіх (JS) */
.form-success {
    /* display: none; сховано в інлайні */
    text-align: center;
    padding: 2rem;
    animation: fadeIn 0.5s ease;
}

.form-success__icon {
    width: 60px;
    height: 60px;
    color: #00b894; /* Зелений */
    margin-bottom: 1rem;
}

.form-success__title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.form-success__text {
    font-size: 1.1rem;
    color: var(--secondary-color);
}


/* ----------------------------- */
/* АДАПТИВНІСТЬ (Contact) */
/* ----------------------------- */

@media (min-width: 1024px) {
    .contact {
        padding: 6rem 0;
    }
    
    /* 2 колонки */
    .contact__container {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .contact__form-wrapper {
        padding: 2.5rem 3rem;
    }
}

/* ----------------------------- */
/* ЕТАП 5: СТИЛІ COOKIE POP-UP   */
/* ----------------------------- */

.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--text-color);
    color: var(--light-bg);
    padding: 1.5rem 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    z-index: 200;
    
    /* Анімація появи */
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.cookie-popup__content {
    container-type: inline-size; /* Дозволяє @container */
    max-width: var(--container-width);
    width: 90%;
    margin: 0 auto;
    display: flex;
    flex-direction: column; /* На мобільних */
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.cookie-popup__text {
    font-size: 0.9rem;
    line-height: 1.6;
}

.cookie-popup__link {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
}
.cookie-popup__link:hover {
    color: var(--primary-color);
}

.cookie-popup__btn {
    padding: 0.6rem 1.5rem; /* Трохи менша кнопка */
    flex-shrink: 0;
}

/* Адаптивність для Cookie Pop-up */
@media (min-width: 768px) {
    .cookie-popup__content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        gap: 2rem;
    }
}


/* ----------------------------- */
/* ЕТАП 5: СТИЛІ ДЛЯ СТОРІНОК ПОЛІТИК (.pages) */
/* ----------------------------- */
/*
  Ці стилі будуть застосовані до ваших 
  privacy.html, terms.html і т.д., 
  якщо ви використаєте задану структуру 
  <main><section class="pages"><div class="container">...
*/

.pages {
    padding: 3rem 0;
    background-color: var(--light-bg);
}

.pages .container {
    max-width: 800px; /* Вужчий контейнер для читабельності */
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.pages h1 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.pages h2 {
    font-size: 1.75rem;
    color: var(--text-color);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.pages p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

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

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

.pages li {
    font-size: 1rem;
    color: var(--secondary-color);
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

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