/* Глобальні налаштування та стилі */
:root {
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Lora', serif;

    --color-dark: #121826;
    --color-light: #F2F2F2;
    --color-accent: #A68F6E;
    --color-white: #FFFFFF;
    --color-text: #E0E0E0;
    --color-text-dark: #333333;

    --transition-speed: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-dark);
    color: var(--color-text);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

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

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

h1, h2, h3 {
    font-family: var(--font-secondary);
    font-weight: 700;
    color: var(--color-white);
}

ul {
    list-style: none;
}

/* Стилі хедера */
.header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(18, 24, 38, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.header__logo {
    font-family: var(--font-secondary);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-white);
}

.header__nav-list {
    display: flex;
    gap: 25px;
}

.header__nav-link {
    font-size: 16px;
    color: var(--color-text);
    padding: 5px 0;
    position: relative;
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-speed);
}

.header__nav-link:hover::after {
    width: 100%;
}

.header__menu-button {
    display: none; /* Буде видно на мобільних */
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
}

/* Адаптивність для хедера */
@media (max-width: 768px) {
    .header__nav {
        display: none; /* Сховаємо навігацію */
    }
    .header__menu-button {
        display: block; /* Покажемо кнопку-бургер */
    }
}


/* Стилі футера */
.footer {
    background-color: #0D121C;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 80px; /* Відступ від останньої секції */
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer__logo {
    font-family: var(--font-secondary);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-white);
    display: inline-block;
    margin-bottom: 10px;
}

.footer__tagline {
    font-size: 14px;
    color: var(--color-text);
    opacity: 0.7;
}

.footer__title {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--color-white);
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__list--contacts li {
    display: flex;
    align-items: center;
}

.footer__link {
    color: var(--color-text);
    font-size: 15px;
}

.footer__address {
    font-size: 15px;
    color: var(--color-text);
    font-style: normal;
}

.footer__bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: rgba(224, 224, 224, 0.5);
}


/* Адаптивність для футера */
@media (max-width: 992px) {
    .footer__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer__column {
        margin-bottom: 20px;
    }
    .footer__list--contacts li {
        justify-content: center;
    }
}

/* ... (попередні стилі для body, header, footer) ... */


/* --- Нові стилі: Загальні компоненти --- */
.button {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 16px;
    color: var(--color-dark);
    background-color: var(--color-accent);
    border: 2px solid var(--color-accent);
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: background-color var(--transition-speed), color var(--transition-speed), transform var(--transition-speed);
}

.button:hover {
    background-color: transparent;
    color: var(--color-accent);
    transform: translateY(-3px);
}

/* --- Нові стилі: Секція Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px; /* Відступ від фіксованого хедера */
    padding-bottom: 60px;
}

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

.hero__title {
    font-size: 52px;
    line-height: 1.2;
    margin-bottom: 20px;
    /* Для анімації */
    opacity: 0;
    transform: translateY(20px);
}

.hero__description {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 500px;
    /* Для анімації */
    opacity: 0;
    transform: translateY(20px);
}

.hero__button {
    /* Для анімації */
    opacity: 0;
    transform: translateY(20px);
}

.hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Для анімації */
    opacity: 0;
    transform: scale(0.95);
}

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

/* Адаптивність для Hero */
@media (max-width: 992px) {
    .hero__title {
        font-size: 42px;
    }
    .hero__description {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .hero {
        text-align: center;
        min-height: auto;
    }
    .hero__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero__content {
        order: 2; /* Текст буде під зображенням */
    }
    .hero__visual {
        order: 1;
    }
    .hero__description {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ... (попередні стилі) ... */

/* --- Нові стилі: Загальні стилі для секцій --- */
.section {
    padding: 80px 0;
}

.section__header {
    text-align: center;
    margin-bottom: 60px;
}

.section__title {
    font-size: 42px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section__title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
}

.section__subtitle {
    font-size: 18px;
    color: var(--color-text);
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.8;
}

/* --- Нові стилі: Секція Аналитика --- */
.analytics {
    background-color: #0D121C; /* Трохи світліший фон для контрасту */
}

.analytics__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.analytics-card {
    background-color: var(--color-dark);
    padding: 35px 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    
    /* Для анімації появи */
    opacity: 0;
    transform: translateY(30px);
}

.analytics-card--visible {
    opacity: 1;
    transform: translateY(0);
}

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

.analytics-card__icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(166, 143, 110, 0.1);
    border-radius: 50%;
    margin-bottom: 25px;
}

.analytics-card__icon i {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
}

.analytics-card__title {
    font-size: 22px;
    font-family: var(--font-primary);
    font-weight: 600;
    margin-bottom: 15px;
}

.analytics-card__description {
    font-size: 15px;
    color: var(--color-text);
    opacity: 0.8;
}

/* Адаптивність для секції Аналитика */
@media (max-width: 992px) {
    .analytics__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .section {
        padding: 60px 0;
    }
    .section__title {
        font-size: 32px;
    }
    .section__subtitle {
        font-size: 16px;
    }
    .analytics__grid {
        grid-template-columns: 1fr;
    }
}
/* ... (попередні стилі) ... */

/* --- Нові стилі: Секція Стратегии --- */
.strategies {
    padding-bottom: 100px;
}

.strategies__timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-top: 20px;
}

/* Центральна лінія */
.strategies__timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--color-accent);
    opacity: 0.3;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}

.timeline__item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    
    /* Для анімації */
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Контент блоків */
.timeline__content {
    padding: 20px 30px;
    background-color: #1A2130;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    border-radius: 8px;
}

/* Розташування блоків по сторонах */
.timeline__item:nth-child(odd) {
    left: 0;
    transform: translateX(-30px);
}

.timeline__item:nth-child(even) {
    left: 50%;
    transform: translateX(30px);
}

/* Стан видимості для анімації */
.timeline__item--visible {
    opacity: 1;
    transform: translateX(0);
}
/* Коригування для парних блоків */
.timeline__item:nth-child(even).timeline__item--visible {
    transform: translateX(0);
}


/* Точка на таймлайні */
.timeline__point {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: var(--color-dark);
    border: 3px solid var(--color-accent);
    top: 32px;
    border-radius: 50%;
    z-index: 1;
}

.timeline__item:nth-child(odd) .timeline__point {
    right: 22px;
}

.timeline__item:nth-child(even) .timeline__point {
    left: 22px;
}


/* Стрілка-трикутник */
.timeline__content::after {
    content: " ";
    position: absolute;
    top: 28px;
    border: 10px solid transparent;
    border-bottom-width: 10px;
    border-top-width: 10px;
}

.timeline__item:nth-child(odd) .timeline__content::after {
    right: -20px;
    border-left-color: #1A2130;
}

.timeline__item:nth-child(even) .timeline__content::after {
    left: -20px;
    border-right-color: #1A2130;
}


.timeline__title {
    font-size: 22px;
    margin-bottom: 10px;
}

.timeline__description {
    font-size: 15px;
    opacity: 0.8;
}

/* Адаптивність для Стратегій */
@media (max-width: 768px) {
    .strategies__timeline::after {
        left: 20px;
    }
    .timeline__item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0px;
        left: 0 !important; /* Важливо для перевизначення */
    }
    .timeline__item:nth-child(even) {
        left: 0 !important; /* Важливо для перевизначення */
    }
    .timeline__point {
        left: 12px !important; /* Важливо для перевизначення */
    }
    .timeline__content::after {
        left: -20px !important; /* Важливо для перевизначення */
        border-right-color: #1A2130 !important;
        border-left-color: transparent !important;
    }
}

/* ... (попередні стилі) ... */

/* --- Нові стилі: Секція Кейсы --- */
.cases {
    background-color: #0D121C; /* Той же фон, що і в "Аналитика" */
}

.cases__tabs-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.cases__tab-button {
    padding: 10px 25px;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    background-color: transparent;
    border: 2px solid rgba(166, 143, 110, 0.4);
    border-radius: 30px;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.cases__tab-button:hover {
    background-color: rgba(166, 143, 110, 0.2);
    border-color: var(--color-accent);
}

.cases__tab-button.is-active {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-dark);
}

.case-content__item {
    display: none; /* Сховано за замовчуванням */
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 60px;
    animation: fadeIn 0.6s ease;
}

.case-content__item.is-active {
    display: grid; /* Відображається активний таб */
}

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

.case-content__visual {
    width: 100%;
}

.case-content__image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.case-content__title {
    font-size: 32px;
    margin-bottom: 25px;
}

.case-content__block {
    margin-bottom: 20px;
}

.case-content__block h4 {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 16px;
    color: var(--color-accent);
    margin-bottom: 8px;
}

.case-content__block p {
    opacity: 0.8;
}

.case-content__results-title {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 16px;
    color: var(--color-accent);
    margin-top: 25px;
    margin-bottom: 15px;
}

.case-content__results-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.case-content__results-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.case-content__results-list i {
    color: var(--color-accent);
    width: 20px;
    height: 20px;
}

/* Адаптивність для Кейсів */
@media (max-width: 768px) {
    .case-content__item.is-active {
        grid-template-columns: 1fr;
    }
    .case-content__visual {
        margin-bottom: 30px;
    }
    .case-content__title {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .cases__tabs-nav {
        flex-direction: column;
    }
}

/* ... (попередні стилі) ... */

/* --- Нові стилі: Секція Публикации --- */
.publications {
    background-color: var(--color-dark); /* Повертаємось до основного темного фону */
}

.publications__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.publication-card {
    display: block;
    background-color: #1A2130;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    color: var(--color-text);
    
    /* Для анімації */
    opacity: 0;
    transform: translateY(30px);
}

.publication-card--visible {
    opacity: 1;
    transform: translateY(0);
}

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

.publication-card__image-wrapper {
    overflow: hidden;
    height: 200px;
}

.publication-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.publication-card:hover .publication-card__image {
    transform: scale(1.05);
}

.publication-card__content {
    padding: 25px;
}

.publication-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 15px;
    opacity: 0.7;
}

.publication-card__category {
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
}

.publication-card__title {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    color: var(--color-white);
    transition: color var(--transition-speed);
}

.publication-card:hover .publication-card__title {
    color: var(--color-accent);
}

.publication-card__excerpt {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.8;
}

.publications__footer {
    text-align: center;
    margin-top: 60px;
}

/* Адаптивність для Публикаций */
@media (max-width: 992px) {
    .publications__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .publications__grid {
        grid-template-columns: 1fr;
    }
}

/* ... (попередні стилі) ... */

/* --- Нові стилі: Секція Контакти --- */
.contact {
    padding-bottom: 100px;
}

.contact__wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    background-color: #0D121C;
    padding: 50px;
    border-radius: 8px;
}

.contact__info-title {
    font-size: 28px;
    margin-bottom: 15px;
}

.contact__info-text {
    opacity: 0.8;
    margin-bottom: 30px;
}

.contact__info-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact__info-list li {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact__info-list i {
    color: var(--color-accent);
    width: 22px;
    height: 22px;
}

.contact__info-list a, .contact__info-list span {
    font-size: 16px;
    color: var(--color-text);
}
.contact__info-list a:hover {
    text-decoration: underline;
}

/* Форма */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--color-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--color-white);
    font-size: 16px;
    font-family: var(--font-primary);
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(166, 143, 110, 0.2);
}

.form-input::placeholder {
    color: rgba(224, 224, 224, 0.4);
}

.form-group--captcha #captcha-question {
    font-weight: 700;
}

.form-group--checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}
.form-group--checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
}
.form-group--checkbox a {
    text-decoration: underline;
}

.contact__form-button {
    width: 100%;
    padding: 15px;
    font-size: 18px;
}

#form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    display: none; /* Сховано за замовчуванням */
}
#form-message.success {
    background-color: rgba(60, 179, 113, 0.2);
    color: #3CB371;
    display: block;
}
#form-message.error {
    background-color: rgba(220, 20, 60, 0.2);
    color: #DC143C;
    display: block;
}


/* Адаптивність для Контактів */
@media (max-width: 992px) {
    .contact__wrapper {
        grid-template-columns: 1fr;
        padding: 30px;
    }
}
/* ... (попередні стилі) ... */

/* --- Нові стилі: Стилізація для сторінок політик (privacy.html і т.д.) --- */
.pages {
    padding: 120px 0 80px; /* Більший відступ зверху через хедер */
    background-color: var(--color-dark);
    color: var(--color-text);
}

.pages h1, .pages h2 {
    font-family: var(--font-secondary);
    color: var(--color-white);
}

.pages h1 {
    font-size: 42px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 15px;
}

.pages h2 {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.pages p, .pages li {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.pages ul {
    list-style: disc;
    padding-left: 25px;
}

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

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

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


/* --- Нові стилі: Cookie банер --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1A2130;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 2000;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}

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

.cookie-banner__text {
    color: var(--color-text);
    text-align: center;
}

.cookie-banner__text a {
    text-decoration: underline;
}

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


@media (max-width: 576px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }
}