/* ======== 0. GLOBAL STYLES ======== */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;700&family=Rubik:wght@400;500&display=swap');

/* font-family: 'Poppins', sans-serif; (Headings)
font-family: 'Rubik', sans-serif; (Body)
*/

/* CSS Variables (Root) */
:root {
    --bg-color: #F8F9FA;
    --text-color: #212529;
    --primary-color: #4A148C;
    --secondary-color: #FF6F00;
    --neutral-light: #E9ECEF;
    --neutral-dark: #495057;
    --white: #FFFFFF;

    --font-body: 'Rubik', sans-serif;
    --font-heading: 'Poppins', sans-serif;
    
    --header-height: 70px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden; /* Запобігаємо горизонтальному скролу */
}

/* Стан body, коли мобільне меню відкрите */
body.body--menu-open {
    overflow: hidden;
}

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

ul {
    list-style: none;
}

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

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

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

/* Utility: Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* ======== 1. HEADER STYLES ======== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--neutral-light);
    z-index: 1000;
}

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

.header__logo {
    font-family: var(--font-heading);
    font-size: 1.5rem; /* 24px */
    font-weight: 700;
    color: var(--primary-color);
}
.header__logo:hover {
    color: var(--primary-color); /* Логотип не змінює колір при ховері */
}

/* Mobile Burger Button */
.header__burger-btn {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
    z-index: 1002; /* Поверх навігації */
}

/* Navigation Menu (Mobile First: Hidden) */
.header__nav {
    position: fixed;
    top: 0;
    right: -100%; /* Повністю сховано */
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    padding-top: calc(var(--header-height) + 2rem);
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1001;
}

/* Modifier for active menu */
.header__nav--open {
    right: 0;
}

.nav__list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 2rem;
}

.nav__item {
    width: 100%;
    margin-bottom: 0.5rem;
}

.nav__link {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--neutral-dark);
    width: 100%;
    border-radius: 6px;
}

.nav__link:hover {
    background-color: var(--neutral-light);
    color: var(--primary-color);
}

.nav__link--cta {
    background-color: var(--secondary-color);
    color: var(--white);
    font-weight: 700;
}

.nav__link--cta:hover {
    background-color: #e66000; /* Darker orange */
    color: var(--white);
}

/* Tablet & Desktop Styles */
@media (min-width: 992px) {
    .header__burger-btn {
        display: none;
    }

    .header__nav {
        position: static;
        height: auto;
        width: auto;
        max-width: none;
        background-color: transparent;
        box-shadow: none;
        padding-top: 0;
        right: 0; /* Reset */
    }

    .nav__list {
        flex-direction: row;
        align-items: center;
        padding-left: 0;
    }

    .nav__item {
        margin-bottom: 0;
        margin-left: 0.5rem;
        width: auto;
    }

    .nav__link {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
}

/* ======== 2. FOOTER STYLES ======== */
.footer {
    background-color: var(--text-color);
    color: var(--neutral-light);
    padding-top: 4rem;
    padding-bottom: 0;
    border-top: 5px solid var(--primary-color);
}

.footer__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

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

.footer__tagline {
    font-size: 0.9rem;
    color: var(--neutral-light);
    max-width: 300px;
}

.footer__col-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

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

.footer__link {
    color: var(--neutral-light);
    font-size: 0.95rem;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer__link:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer__address p {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
}

.footer__address .footer__link {
    display: inline; /* Щоб посилання було в одному рядку з текстом */
}

.footer__icon {
    width: 18px;
    height: 18px;
    margin-right: 0.75rem;
    flex-shrink: 0; /* Іконка не буде стискатись */
    margin-top: 3px;
    color: var(--secondary-color);
}

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

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

@media (min-width: 1024px) {
    .footer__container {
        /* 1.5fr (about) | 1fr (nav) | 1.5fr (legal) | 1.5fr (contacts) */
        grid-template-columns: 1.5fr 1fr 1.5fr 1.5fr;
    }
}

/* ======== 3. HERO SECTION STYLES ======== */

.hero {
    padding-top: calc(var(--header-height) + 4rem); /* Відступ від фіксованого хедера + падінг */
    padding-bottom: 4rem;
    background-color: var(--white); /* Трохи відрізняється від body */
    overflow: hidden; /* Важливо для анімацій */
}

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

.hero__title {
    font-size: 2.5rem; /* 40px */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero__title-sub {
    font-size: 1.25rem; /* 20px */
    font-weight: 500;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 0.25rem;
}

.hero__description {
    font-size: 1.1rem;
    color: var(--neutral-dark);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 500px; /* Обмежуємо ширину тексту */
}

/* Call to Action Button */
.hero__cta {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 2rem;
    background: linear-gradient(90deg, var(--secondary-color) 0%, #ff8c00 100%);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px; /* "Pill" shape */
    box-shadow: 0 4px 15px rgba(255, 111, 0, 0.4);
    transition: all 0.3s ease;
}

.hero__cta-icon {
    width: 20px;
    height: 20px;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.hero__cta:hover {
    color: var(--white);
    box-shadow: 0 6px 20px rgba(255, 111, 0, 0.5);
    transform: translateY(-3px);
}

.hero__cta:hover .hero__cta-icon {
    transform: translateX(5px);
}

/* Hero Image */
.hero__image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__image {
    width: 100%;
    max-width: 450px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
}

/* Декоративні елементи для зображення */
.hero__deco {
    position: absolute;
    background-color: var(--primary-color);
    border-radius: 16px;
    z-index: 1;
}

.hero__deco--1 {
    width: 80%;
    height: 80%;
    bottom: -20px;
    right: -20px;
    opacity: 0.1;
    transform: rotate(-10deg);
}

.hero__deco--2 {
    width: 50%;
    height: 50%;
    top: -20px;
    left: -20px;
    background-color: var(--secondary-color);
    opacity: 0.15;
    transform: rotate(15deg);
}


/* Desktop Styles */
@media (min-width: 992px) {
    .hero {
        /* Робимо секцію високою */
        min-height: 90vh; 
        display: flex;
        align-items: center;
        padding-top: var(--header-height); /* Тільки відступ від хедера */
        padding-bottom: 2rem;
    }

    .hero__container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .hero__content {
        order: 1; /* Текст зліва */
    }
    
    .hero__image-wrapper {
        order: 2; /* Картинка справа */
    }

    .hero__title {
        font-size: 3.25rem; /* 52px */
    }

    .hero__description {
        font-size: 1.15rem;
    }
}

/* ======== 4. TOPICS SECTION STYLES ======== */

.topics {
    padding-top: 5rem;
    padding-bottom: 5rem;
    background-color: var(--bg-color); /* Фон як у body */
}

.topics__header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.topics__title {
    font-size: 2.25rem; /* 36px */
    margin-bottom: 0.75rem;
}

.topics__subtitle {
    font-size: 1.1rem;
    color: var(--neutral-dark);
    line-height: 1.7;
}

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

/* Card styles */
.topics-card {
    background-color: var(--white);
    border: 1px solid var(--neutral-light);
    border-radius: 12px;
    padding: 2rem;
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.topics-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.topics-card__icon-wrapper {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #6a1b9a 100%);
    color: var(--white);
    border-radius: 50%; /* Кругла іконка */
    margin-bottom: 1.5rem;
}

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

.topics-card__title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.topics-card__description {
    font-size: 0.95rem;
    color: var(--neutral-dark);
    line-height: 1.6;
}

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

    .topics__title {
        font-size: 2.5rem; /* 40px */
    }
}

/* Desktop styles: 4 колонки */
@media (min-width: 1024px) {
    .topics__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ======== 5. HOW-IT-WORKS SECTION STYLES ======== */

.how-it-works {
    padding-top: 5rem;
    padding-bottom: 5rem;
    background-color: var(--white); /* Виділяємо фон */
}

.how-it-works__header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.how-it-works__title {
    font-size: 2.25rem; /* 36px */
    margin-bottom: 0.75rem;
}

.how-it-works__subtitle {
    font-size: 1.1rem;
    color: var(--neutral-dark);
    line-height: 1.7;
}

/* Steps Wrapper */
.how-it-works__steps-wrapper {
    display: grid;
    grid-template-columns: 1fr; /* 1 колонка на мобільних */
    gap: 3rem;
    position: relative;
}

/* Step Card */
.how-it-works-step {
    text-align: center;
    position: relative;
    padding: 0 1rem;
}

.how-it-works-step__icon-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    background-color: var(--bg-color);
    border: 2px solid var(--neutral-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem auto;
    transition: all 0.3s ease;
}

.how-it-works-step__icon {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.how-it-works-step__number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 36px;
    height: 36px;
    background-color: var(--secondary-color);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.how-it-works-step__title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.how-it-works-step__description {
    font-size: 0.95rem;
    color: var(--neutral-dark);
    line-height: 1.6;
}

/* Hover effect */
.how-it-works-step:hover .how-it-works-step__icon-wrapper {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.how-it-works-step:hover .how-it-works-step__icon {
    color: var(--white);
    transform: scale(1.1);
}

/* Tablet styles: 2 колонки */
@media (min-width: 768px) {
    .how-it-works__steps-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem 2rem;
    }
    
    .how-it-works__title {
        font-size: 2.5rem; /* 40px */
    }
}

/* Desktop styles: 4 колонки + з'єднувальна лінія */
@media (min-width: 1024px) {
    .how-it-works__steps-wrapper {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }

    /* Пунктирна лінія, що з'єднує кроки */
    .how-it-works-step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 50px; /* На рівні центру іконки */
        right: -50%; /* Починається від центру поточної картки */
        width: 100%; /* До центру наступної картки */
        height: 2px;
        border-top: 2px dashed var(--neutral-light);
        z-index: -1;
        transform: translateX(50%);
    }
}

/* ======== 6. BENEFITS SECTION STYLES ======== */

.benefits {
    padding-top: 5rem;
    padding-bottom: 5rem;
    background-color: var(--bg-color); /* Як у body */
}

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

/* Image Wrapper */
.benefits__image-wrapper {
    position: relative;
    max-width: 450px;
    margin: 0 auto;
}

.benefits__image {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
}

.benefits__deco {
    position: absolute;
    width: 70%;
    height: 70%;
    background-color: var(--secondary-color);
    opacity: 0.1;
    border-radius: 16px;
    top: -25px;
    left: -25px;
    z-index: 1;
    transform: rotate(-10deg);
}

/* Content Wrapper */
.benefits__title {
    font-size: 2.25rem; /* 36px */
    margin-bottom: 0.75rem;
}

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

/* Accordion Styles */
.accordion {
    border: 1px solid var(--neutral-light);
    border-radius: 12px;
    overflow: hidden; /* Обрізає кути */
    background-color: var(--white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.accordion__item {
    border-bottom: 1px solid var(--neutral-light);
}
.accordion__item:last-child {
    border-bottom: none;
}

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

.accordion__button-title {
    margin-right: 1rem;
}

.accordion__icon {
    width: 22px;
    height: 22px;
    color: var(--secondary-color);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.accordion__content {
    /* Сховано за замовчуванням */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}
.accordion__content p {
    padding: 0 1.5rem 1.25rem 1.5rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--neutral-dark);
}

/* Accordion Active State */
.accordion__item--active .accordion__button {
    color: var(--secondary-color);
}

.accordion__item--active .accordion__icon {
    transform: rotate(180deg);
}

.accordion__item--active .accordion__content {
    /* max-height буде встановлено через JS */
    border-top: 1px solid var(--neutral-light);
}

/* Desktop styles: 2 колонки */
@media (min-width: 992px) {
    .benefits__container {
        grid-template-columns: 1fr 1.1fr; /* 1:1.1 ratio */
        gap: 4rem;
    }

    .benefits__title {
        font-size: 2.5rem; /* 40px */
    }
}

/* ======== 7. FAQ SECTION STYLES ======== */

.faq {
    padding-top: 5rem;
    padding-bottom: 5rem;
    background-color: var(--white); /* Виділяємо фон */
}

.faq__container {
    max-width: 900px; /* Робимо секцію трохи вужчою для кращої читабельності */
    margin-left: auto;
    margin-right: auto;
}

.faq__header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.faq__title {
    font-size: 2.25rem; /* 36px */
    margin-bottom: 0.75rem;
}

.faq__subtitle {
    font-size: 1.1rem;
    color: var(--neutral-dark);
    line-height: 1.7;
}

/* Desktop styles */
@media (min-width: 768px) {
    .faq__title {
        font-size: 2.5rem; /* 40px */
    }
}

/* ======== 8. CONTACT SECTION STYLES ======== */

.contact {
    padding-top: 5rem;
    padding-bottom: 5rem;
    background-color: var(--bg-color); /* Як у body */
}

.contact__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

/* Info Column */
.contact__title {
    font-size: 2.25rem; /* 36px */
    margin-bottom: 1rem;
}

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

.contact__note {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    background-color: var(--white);
    border: 1px solid var(--neutral-light);
    border-left: 4px solid var(--secondary-color);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--neutral-dark);
}
.contact__note-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    flex-shrink: 0;
    color: var(--secondary-color);
    margin-top: 2px;
}

/* Form Column */
.contact__form-wrapper {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
}

.form__group {
    margin-bottom: 1.25rem;
    position: relative;
}

.form__label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.form__input {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    font-family: var(--font-body);
    border: 1px solid var(--neutral-light);
    border-radius: 8px;
    background-color: var(--bg-color);
    transition: all 0.3s ease;
}

.form__input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(74, 20, 140, 0.1);
}

/* Error styles (для майбутньої валідації) */
.form__error-message {
    display: none; /* Сховано */
    font-size: 0.85rem;
    color: #D32F2F;
    position: absolute;
    bottom: -18px;
    left: 0;
}
.form__group--error .form__input {
    border-color: #D32F2F;
}
.form__group--error .form__error-message {
    display: block;
}

/* Captcha */
.form__captcha {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.form__captcha-label {
    margin-bottom: 0;
    flex-shrink: 0;
    font-size: 1rem;
}
.form__captcha-input {
    width: 80px;
}

/* Checkbox */
.form__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.form__checkbox-input {
    margin-top: 4px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.form__checkbox-label {
    font-size: 0.9rem;
    color: var(--neutral-dark);
    margin-bottom: 0;
    line-height: 1.5;
}
.form__checkbox-label a {
    text-decoration: underline;
}

/* Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 0.5rem;
}

.btn--primary {
    background: linear-gradient(90deg, var(--secondary-color) 0%, #ff8c00 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 111, 0, 0.4);
}
.btn--primary:hover {
    color: var(--white);
    box-shadow: 0 6px 20px rgba(255, 111, 0, 0.5);
    transform: translateY(-3px);
}

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

.btn:disabled {
    background: var(--neutral-light);
    color: var(--neutral-dark);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* Success Message */
.form__success-message {
    display: none; /* СХОВАНО ЗА ЗАМОВЧУВАННЯМ */
    padding: 1rem 1.5rem;
    background-color: #2E7D32; /* Зелений */
    color: var(--white);
    border-radius: 8px;
    text-align: center;
    margin-top: 1.5rem;
    display: none; /* Сховано */
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}
.form__success-icon {
    width: 20px;
    height: 20px;
}

/* Desktop styles: 2 колонки */
@media (min-width: 992px) {
    .contact__container {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
    }
    
    .contact__title {
        font-size: 2.5rem; /* 40px */
    }
}

/* ======== 9. COOKIE POPUP STYLES ======== */

.cookie-popup {
    position: fixed;
    bottom: -100%; /* Сховано за замовчуванням */
    left: 0;
    width: 100%;
    background-color: var(--text-color);
    color: var(--white);
    padding: 1.5rem;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
    z-index: 2000;
    transition: bottom 0.5s ease-in-out;
}

/* Modifier to show the popup */
.cookie-popup--show {
    bottom: 0;
}

.cookie-popup__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

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

.cookie-popup__link {
    color: var(--secondary-color);
    text-decoration: underline;
    font-weight: 500;
}

.cookie-popup__btn {
    padding: 0.6rem 1.5rem;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

.cookie-popup__btn:hover {
    background-color: #e66000; /* Darker orange */
}

@media (min-width: 768px) {
    .cookie-popup__content {
        flex-direction: row;
        gap: 2rem;
    }
    .cookie-popup__text {
        text-align: left;
    }
}

/* ======== 10. POLICY PAGES STYLES (privacy.html etc.) ======== */

/* Ми використовуємо ті ж хедер і футер, тому потрібен відступ */
body {
    padding-top: var(--header-height);
}

.pages {
    padding-top: 4rem;
    padding-bottom: 5rem;
    background-color: var(--white);
}

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

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

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

.pages p, .pages li {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--neutral-dark);
    margin-bottom: 1rem;
}

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

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

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

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