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

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

/* --- CSS Variables (Root) --- */
:root {
    --primary-color: #0A2540; /* Глубокий синий */
    --accent-color: #00BFA5;  /* Бирюзовый акцент */
    --text-color: #333333;
    --text-color-light: #F5F5F5;
    --bg-color: #FFFFFF;
    --footer-bg: #0A2540;
    
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
    
    --header-height: 70px;
}

/* --- Resets --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

ul, ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* --- Utility Classes --- */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* ======== 1. HEADER & LOGO (Mobile First) ======== */

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.logo__img {
    width: 40px;
    height: 40px;
}

.logo__text--footer {
    color: var(--text-color-light);
}

.header {
    width: 100%;
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #eee;
    z-index: 100;
}

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

/* --- Navigation (Mobile) --- */
.header__nav {
    position: fixed;
    top: var(--header-height);
    left: -100%; /* Скрыто по умолчанию */
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-color);
    transition: left 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 2rem;
}

.header__nav.is-active {
    left: 0; /* Показать меню */
}

.header__nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
}

.header__nav-link {
    font-family: var(--font-secondary);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: color 0.3s;
}

.header__nav-link:hover {
    color: var(--accent-color);
}

.header__nav-link--cta {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: background-color 0.3s, color 0.3s;
}

.header__nav-link--cta:hover {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

/* --- Burger Button --- */
.header__burger {
    display: block; /* Показать на мобильных */
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
}

.header__burger .lucide-x {
    display: none; /* Скрыть X по умолчанию */
}

.header__burger.is-active .lucide-menu {
    display: none; /* Скрыть бургер при active */
}

.header__burger.is-active .lucide-x {
    display: block; /* Показать X при active */
}


/* ======== 2. FOOTER (Mobile First) ======== */

.footer {
    background-color: var(--footer-bg);
    color: var(--text-color-light);
    padding: 4rem 0 2rem 0;
    margin-top: 5rem; /* Отступ от контента */
}

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

.footer__heading {
    font-family: var(--font-secondary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer__tagline {
    font-size: 0.9rem;
    color: #ccc;
    margin-top: 1rem;
    max-width: 250px;
}

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

.footer__link {
    color: #ccc;
    transition: color 0.3s, padding-left 0.3s;
    font-size: 0.95rem;
}

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

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

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

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

.footer__bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: #aaa;
}


/* ======== 9. MEDIA QUERIES (Desktop) ======== */

@media (min-width: 768px) {
    /* --- Header (Desktop) --- */
    .header__burger {
        display: none; /* Скрыть бургер */
    }

    .header__nav {
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
        left: 0;
        padding: 0;
    }
    
    .header__nav-list {
        flex-direction: row;
        align-items: center;
        gap: 2rem;
        margin-top: 0;
    }
    
    .header__nav-link {
        font-size: 1rem;
        font-weight: 500;
    }
    
    .header__nav-link--cta {
        padding: 0.5rem 1.25rem;
    }
    
    /* --- Footer (Desktop) --- */
    .footer__grid {
        /* 4 колонки: 1.5fr (лого) 1fr 1fr 1.5fr (контакты) */
        grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
        gap: 2rem;
    }
}

/* ======== 3. REUSABLE COMPONENTS (Buttons) ======== */

.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn--primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.btn--primary:hover {
    background-color: transparent;
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 191, 165, 0.2);
}

.btn--secondary {
    background-color: transparent;
    border: 2px solid #ddd;
    color: var(--text-color);
}

.btn--secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}


/* ======== 4. SECTION: HERO (Mobile First) ======== */

.hero {
    /* Використовуємо 100vh, щоб секція займала весь екран + відступ на висоту хедера */
    min-height: 100vh;
    padding-top: calc(var(--header-height) + 4rem); /* Відступ зверху + хедер */
    padding-bottom: 4rem;
    display: flex;
    align-items: center;
    background-color: var(--bg-color);
    overflow: hidden; /* Для декоративних елементів */
}

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

.hero__content {
    text-align: center;
    animation: fadeInDown 1s ease-out; /* Анімація появи */
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__title {
    font-family: var(--font-secondary);
    font-size: clamp(1.5rem, 6vw, 2.5rem); /* Адаптивний розмір шрифту */
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero__title--accent {
    color: var(--accent-color);
    display: block; /* Робимо акцентний текст на новому рядку */
}

.hero__description {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    min-height: 50px; /* Резервуємо місце для тексту, що друкується */
}

.hero__typed-text {
    font-weight: 600;
    color: var(--primary-color);
}

/* Ефект курсора для друкарської машинки */
.hero__typed-text::after {
    content: '|';
    display: inline-block;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero__actions {
    display: flex;
    flex-direction: column; /* Мобільні: кнопки одна під одною */
    gap: 1rem;
    justify-content: center;
}

.hero__image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 1s ease-out; /* Анімація появи */
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__img {
    width: 100%;

    height: auto;
    border-radius: 20px;
    object-fit: cover;
    z-index: 2;
    border: 5px solid white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Декоративні елементи */
.hero__deco {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
}

.hero__deco--1 {
    width: 150px;
    height: 150px;
    background: rgba(0, 191, 165, 0.1); /* Прозорий акцентний */
    top: -20px;
    left: 20px;
    animation: pulse 4s infinite ease-in-out;
}

.hero__deco--2 {
    width: 80px;
    height: 80px;
    background: rgba(10, 37, 64, 0.1); /* Прозорий основний */
    bottom: -10px;
    right: 30px;
    animation: pulse 5s infinite ease-in-out reverse;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(0.9);
    }
    50% {
        transform: scale(1.1);
    }
}


/* ======== 9. MEDIA QUERIES (Hero Desktop) ======== */

@media (min-width: 768px) {
    .hero__actions {
        flex-direction: row; /* Desktop: кнопки в ряд */
    }

    .hero__img {
        width: 100%;
    }
}

@media (min-width: 992px) {
    .hero {
        padding-top: var(--header-height); /* Забираємо дод. відступ на десктопі */
        min-height: 90vh; /* Зменшуємо висоту, бо 100vh може бути забагато */
    }
    
    .hero__container {
        grid-template-columns: 1fr 1fr; /* Дві колонки */
        gap: 4rem;
    }

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

    .hero__actions {
        justify-content: flex-start;
    }

    .hero__description {
         min-height: 75px; /* Більше місця для тексту */
    }
}

/* ======== 3.1 REUSABLE COMPONENTS (Sections) ======== */
/* Додамо загальні стилі для всіх секцій */

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

.section-title {
    font-family: var(--font-secondary);
    font-size: clamp(2rem, 5vw, 2.75rem); /* Адаптивний заголовок */
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

/* ======== 5. SECTION: ABOUT (Mobile First) ======== */

.about {
    padding: 4rem 0;
    background-color: #f9f9f9; /* Легкий фон для виділення секції */
}

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

.about__image-wrapper {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.about__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about__text {
    font-size: 1.05rem;
    color: var(--text-color);
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.about__text strong {
    color: var(--primary-color);
    font-weight: 600;
}

.about__features-list {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr; /* 1 колонка на мобільних */
    gap: 1rem;
}

.about__features-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
    font-weight: 500;
}

.about__features-icon {
    color: var(--accent-color);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}


/* ======== 9. MEDIA QUERIES (About Desktop) ======== */

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

    .about__container {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    
    .about__image-wrapper {
        /* На десктопі зображення буде ліворуч, міняємо порядок */
        order: -1; 
    }

    .about__features-list {
        grid-template-columns: 1fr 1fr; /* 2 колонки на планшетах/десктопах */
    }
}

/* ======== 6. SECTION: FEATURES (Mobile First) ======== */

.features {
    padding: 4rem 0;
    /* Фон залишаємо білим для чергування з секцією 'about' */
    background-color: var(--bg-color);
}

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

.features__subtitle {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.7;
}

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

.features__card {
    background-color: #ffffff;
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.features__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 191, 165, 0.15);
}

.features__card-icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem auto;
    border-radius: 50%;
    background-color: rgba(0, 191, 165, 0.1); /* Світлий фон для іконки */
    display: flex;
    justify-content: center;
    align-items: center;
}

.features__card-icon {
    width: 32px;
    height: 32px;
    color: var(--accent-color);
}

.features__card-title {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.features__card-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

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

.features__card-description small {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #777;
    font-style: italic;
}


/* ======== 9. MEDIA QUERIES (Features Desktop) ======== */

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

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

@media (min-width: 992px) {
    .features__grid {
        gap: 2.5rem;
    }
}

/* ======== 3.2 REUSABLE COMPONENTS (Buttons Update) ======== */
.btn--tertiary {
    background: none;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.btn--tertiary:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}


/* ======== 7. SECTION: MODULES (Mobile First) ======== */

.modules {
    padding: 4rem 0;
    background-color: #f9f9f9; /* Знову чергуємо фон */
}

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

.modules__subtitle {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.7;
}

.modules__accordion {
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid #ddd;
    border-radius: 15px;
    overflow: hidden; /* Важливо для заокруглення */
}

.modules__item {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
}

.modules__item:last-child {
    border-bottom: none;
}

.modules__item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.75rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.modules__item-header:hover {
    background-color: #fcfcfc;
}

.modules__item-title {
    font-family: var(--font-secondary);
    font-size: 1.15rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-right: 1rem; /* Відступ від іконки */
}

.modules__item-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.modules__item-icon--minus {
    display: none; /* Ховаємо мінус за замовчуванням */
}

/* --- Логіка контенту акордеону (Приховано) --- */
.modules__item-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                padding 0.4s ease;
    padding-left: 1.75rem;
    padding-right: 1.75rem;
}

.modules__item-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
}

/* --- Стан IS-ACTIVE --- */
.modules__item.is-active .modules__item-header {
    background-color: #fafafa;
}

.modules__item.is-active .modules__item-content {
    max-height: 300px; /* Встановіть достатню висоту */
    padding-top: 0.5rem;
    padding-bottom: 2rem;
}

.modules__item.is-active .modules__item-icon--minus {
    display: block; /* Показати мінус */
}

.modules__item.is-active .modules__item-icon--plus {
    display: none; /* Сховати плюс */
}


/* ======== 9. MEDIA QUERIES (Modules Desktop) ======== */
@media (min-width: 768px) {
    .modules {
        padding: 6rem 0;
    }
    
    .modules__item-title {
        font-size: 1.25rem;
    }
}

/* ======== 8. SECTION: FAQ (Mobile First) ======== */

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

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

.faq__accordion {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Відстань між айтемами */
}

.faq__item {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: box-shadow 0.3s;
}

.faq__item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
}

.faq__item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.75rem;
    cursor: pointer;
}

.faq__item-title {
    font-family: var(--font-primary); /* Використовуємо основний шрифт для питань */
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-right: 1rem;
}

.faq__item-icon {
    width: 22px;
    height: 22px;
    color: var(--primary-color); /* Іконки в основному кольорі */
    flex-shrink: 0;
}

.faq__item-icon--minus {
    display: none;
}

/* --- Логіка контенту (Приховано) --- */
.faq__item-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                padding 0.4s ease;
    padding-left: 1.75rem;
    padding-right: 1.75rem;
}

.faq__item-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    padding-bottom: 1.5rem; /* Відступ тільки при відкритті */
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
    margin-top: -1px; /* Компенсація для бордера */
}

/* --- Стан IS-ACTIVE --- */
.faq__item.is-active .faq__item-icon--minus {
    display: block;
}

.faq__item.is-active .faq__item-icon--plus {
    display: none;
}

.faq__item.is-active .faq__item-content {
    max-height: 300px; /* Достатня висота */
}

.faq__item.is-active .faq__item-header {
    color: var(--accent-color); /* Можна змінити колір активного питання */
}


/* ======== 9. MEDIA QUERIES (FAQ Desktop) ======== */
@media (min-width: 768px) {
    .faq {
        padding: 6rem 0;
    }
    
    .faq__item-title {
        font-size: 1.2rem;
    }
}

/* ======== 8. SECTION: CONTACT (Mobile First) ======== */
/* (Нумерація продовжується з попереднього кроку, у вас це може бути 9) */

.contact {
    padding: 4rem 0;
    background-color: #f9f9f9; /* Фон, як у 'about' */
}

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

.contact__description {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact__details-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
    font-weight: 500;
}

.contact__details-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.contact__details-item a {
    color: var(--primary-color);
    transition: color 0.3s;
}
.contact__details-item a:hover {
    color: var(--accent-color);
}

/* --- Form Styles --- */
.contact__form-wrapper {
    background-color: #fff;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.07);
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

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

.form-group__input {
    width: 100%;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    font-family: var(--font-primary);
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group__input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 191, 165, 0.2);
}

/* Checkbox */
.form-group--checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.form-group__checkbox {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    flex-shrink: 0;
}

.form-group__label--checkbox {
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.5;
    color: #555;
}

.form-group__label--checkbox a {
    color: var(--accent-color);
    text-decoration: underline;
}

.contact__form-btn {
    width: 100%;
    margin-top: 1.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    font-size: 1.1rem;
}

/* Success Message */
.contact__form-message {
    display: none; /* Приховано за замовчуванням */
    padding: 1.25rem;
    background-color: rgba(0, 191, 165, 0.1);
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1.5rem;
    align-items: center;
    gap: 1rem;
}

.contact__form-message i {
    width: 24px;
    height: 24px;
    color: var(--accent-color);
    flex-shrink: 0;
}

/* ======== 9. MEDIA QUERIES (Contact Desktop) ======== */
@media (min-width: 992px) {
    .contact {
        padding: 6rem 0;
    }

    .contact__container {
        grid-template-columns: 1fr 1.1fr; /* Права колонка трохи ширша */
        gap: 5rem;
        align-items: center;
    }
}
/* ======== 10. STAGE 5.1: COOKIE POP-UP ======== */

.cookie-popup {
    display: none; /* Приховано за замовчуванням */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 37, 64, 0.95); /* --primary-color з прозорістю */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: var(--text-color-light);
    padding: 1.5rem 0;
    z-index: 200;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    animation: slideUp 0.5s ease-out;
}

.cookie-popup.is-visible {
    display: block;
}

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

.cookie-popup__container {
    display: flex;
    flex-direction: column; /* Mobile */
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

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

.cookie-popup__btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    flex-shrink: 0;
}

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


/* ======== 11. STAGE 5.2: POLICY PAGES STYLING ======== */
/* Стилі для сторінок (privacy.html, terms.html і т.д.) */

.pages {
    padding-top: calc(var(--header-height) + 4rem); /* Компенсація фікс. хедера */
    padding-bottom: 5rem;
    background-color: #fff;
    min-height: 80vh;
}

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

.pages h1 {
    font-family: var(--font-secondary);
    font-size: clamp(2.2rem, 5vw, 3rem);
    color: var(--primary-color);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.pages h2 {
    font-family: var(--font-secondary);
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--primary-color);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

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

.pages ul,
.pages ol {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.pages li {
    list-style-type: disc; /* Стандартні маркери */
    margin-bottom: 0.75rem;
}

.pages ol li {
    list-style-type: decimal; /* Нумерація */
}

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

.pages a {
    color: var(--accent-color);
    text-decoration: underline;
    transition: color 0.3s;
}

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