/* ЕТАП 0: ГЛОБАЛЬНІ НАЛАШТУВАННЯ */

/* 1. Імпорт шрифтів */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Manrope:wght@600;700&display=swap');

/* 2. CSS Змінні (Root) */
:root {
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --primary-color: #4A55FF;
    --primary-dark: #3a45e0;
    --secondary-color: #00C49A;
    
    --text-dark: #222222;
    --text-light: #555555;
    --text-white: #F9FAFB;
    
    --bg-light: #F9FAFB;
    --bg-white: #FFFFFF;
    --border-color: #E0E0E0;
    
    --header-height: 70px;
}

/* 3. Скидання стилів та Mobile-First база */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    padding-top: var(--header-height); /* Компенсація фіксованого хедера */
}

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

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

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

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

ul {
    list-style: none;
}

/* 4. Утиліти */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
}

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

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

/* Мобільне меню (Mobile-First) */
.header__nav {
    position: fixed;
    top: var(--header-height);
    right: -100%; /* Сховано за замовчуванням */
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-white);
    transition: right 0.3s ease-in-out;
    display: flex;
    justify-content: center;
    padding-top: 40px;
}

/* Стан "відкрито" для мобільного меню */
body.menu-open .header__nav {
    right: 0;
}

.header__nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.header__nav-link {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    padding: 10px;
}

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

.header__nav-link--cta {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-radius: 8px;
    padding: 10px 20px;
}

.header__nav-link--cta:hover {
    background-color: var(--primary-dark);
    color: var(--bg-white);
}

/* Кнопка-бургер */
.header__toggle {
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    display: block; /* Завжди видно на мобілках */
}

.header__toggle-icon {
    display: block;
}

.header__toggle-icon--close {
    display: none;
}

/* Іконки в кнопці при відкритому меню */
body.menu-open .header__toggle-icon--menu {
    display: none;
}
body.menu-open .header__toggle-icon--close {
    display: block;
}


/* Адаптив для десктопа (починаючи з 992px) */
@media (min-width: 992px) {
    .header__toggle {
        display: none; /* Ховаємо бургер */
    }

    .header__nav {
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
        padding-top: 0;
        right: 0; /* Завжди на місці */
        transition: none;
    }

    .header__nav-list {
        flex-direction: row;
        gap: 20px;
    }

    .header__nav-link {
        font-size: 1rem;
        padding: 5px 10px;
    }
}


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

.footer {
    background-color: var(--text-dark);
    color: var(--text-white);
    padding: 60px 0 30px 0;
    border-top: 4px solid var(--primary-color);
}

.footer__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer__col--logo {
    margin-bottom: 10px;
}

.footer__logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 10px;
}

.footer__tagline {
    font-size: 0.9rem;
    color: #B0B0B0;
    max-width: 250px;
    line-height: 1.5;
}

.footer__col-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--bg-white);
    margin-bottom: 15px;
    text-transform: uppercase;
}

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

.footer__link {
    color: #B0B0B0;
    font-size: 0.95rem;
    text-decoration: none;
}

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

.footer__list--contact {
    gap: 15px;
}

.footer__list--contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer__list--contact i {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--primary-color);
}

.footer__bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 30px;
    color: #B0B0B0;
    font-size: 0.85rem;
}

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

@media (min-width: 992px) {
    .footer__container {
        grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
        gap: 30px;
    }
}

/* ЕТАП 3: HERO СЕКЦІЯ */

.hero {
    background-color: var(--bg-white);
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.hero__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
}

.hero__content {
    max-width: 600px;
}

.hero__title {
    font-size: 1.5rem; /* 36px */
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem; /* 24px */
}

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

.hero__subtitle {
    font-size: 1.25rem; /* 20px */
    font-family: var(--font-heading);
    color: var(--text-light);
    margin-bottom: 1.5rem;
    height: 30px; /* Резервуємо місце для анімації */
}

/* Курсор для анімації друкування */
.hero__subtitle #typewriter::after {
    content: '|';
    color: var(--secondary-color);
    animation: blink 0.7s infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero__description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2rem; /* 32px */
}

.hero__cta {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--bg-white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero__cta:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    color: var(--bg-white);
}

.hero__image-wrapper {
    width: 100%;
    max-width: 500px;
}

.hero__image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* Адаптив для Hero (Desktop) */
@media (min-width: 992px) {
    .hero {
        padding: 80px 0;
    }
    
    .hero__container {
        flex-direction: row;
        justify-content: space-between;
        gap: 60px;
        text-align: left;
    }

    .hero__content {
        flex: 1;
        max-width: none;
    }

    .hero__image-wrapper {
        flex: 0 0 45%; /* Фіксована ширина для зображення */
        max-width: 45%;
    }

    .hero__title {
        font-size: 2.5rem; /* 44px */
    }
}

/* ЕТАП 3: СЕКЦІЯ "О ПЛАТФОРМЕ" (ABOUT) */

.about {
    background-color: var(--bg-light); /* Чергуємо фон для контрасту */
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.about__container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about__title {
    font-size: 2rem; /* 32px */
    margin-bottom: 1.5rem;
}

.about__title--highlight {
    color: var(--primary-color);
    font-family: var(--font-heading); /* Переконаємось, що шрифт такий самий */
}

.about__description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

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

.about__features-title {
    font-size: 1.5rem; /* 24px */
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.about__features-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.about__feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.about__feature-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    color: var(--secondary-color); /* Використовуємо акцентний колір */
    margin-top: 5px;
}

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

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

/* Адаптив для "About" (Desktop) */
@media (min-width: 992px) {
    .about {
        padding: 80px 0;
    }

    .about__container {
        flex-direction: row;
        justify-content: space-between;
        gap: 60px;
    }
    
    .about__content {
        flex: 1; /* Займає 50% */
        max-width: 50%;
    }

    .about__features {
        flex: 1; /* Займає 50% */
        max-width: 50%;
        padding-left: 20px; /* Невеликий відступ для візуального розділення */
    }
    
    .about__title {
        font-size: 2.25rem; /* 36px */
    }
}

/* ЕТАП 3: СЕКЦІЯ "ТЕХНОЛОГИИ" (TECH) */

.tech {
    background-color: var(--bg-white);
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.tech__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.tech__title {
    font-size: 2rem; /* 32px */
    margin-bottom: 1rem;
}

.tech__subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Навігація табів */
.tech__nav {
    margin-bottom: 30px;
}

.tech__nav-list {
    display: flex;
    flex-direction: column; /* Mobile-first: кнопки одна під одною */
    gap: 10px;
}

.tech__nav-button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 15px 20px;
    
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.tech__nav-button i {
    width: 24px;
    height: 24px;
    color: var(--text-light);
    transition: color 0.2s ease;
}

.tech__nav-button:hover {
    background-color: var(--bg-white);
    border-color: #c0c0c0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Активний стан кнопки */
.tech__nav-button--active {
    background-color: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
}

.tech__nav-button--active i {
    color: var(--text-white);
}

.tech__nav-button--active:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: none;
}

/* Панелі контенту */
.tech__content-panel {
    display: none; /* Ховаємо всі панелі за замовчуванням */
    background-color: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

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

.tech__content-panel {
    /* Використовуємо flex для мобілок (контент над картинкою) */
    display: flex;
    flex-direction: column;
}

.tech__panel-content {
    padding: 30px;
}

.tech__panel-content h3 {
    font-size: 1.5rem; /* 24px */
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tech__panel-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.tech__panel-content ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.tech__panel-content li {
    position: relative;
    padding-left: 30px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.tech__panel-content li::before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2300C49A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    left: 0;
    top: 2px;
}

.tech__panel-cta {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--bg-white);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.tech__panel-cta:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    color: var(--bg-white);
}

.tech__panel-image img {
    width: 100%;
    height: auto;
    border-radius: 0 0 8px 8px; /* Радіус знизу на мобілках */
    object-fit: cover;
    max-height: 300px;
}


/* Адаптив для "Tech" (Desktop) */
@media (min-width: 768px) {
    .tech {
        padding: 80px 0;
    }

    .tech__title {
        font-size: 2.25rem; /* 36px */
    }
    
    .tech__nav-list {
        flex-direction: row; /* Горизонтальні кнопки */
    }

    .tech__nav-button {
        flex-direction: column; /* Іконка над текстом */
        text-align: center;
        gap: 8px;
        min-height: 110px;
        justify-content: center;
    }
    
    .tech__content-panel {
        flex-direction: row; /* Контент зліва, картинка справа */
        /* Важливо! Треба оновити display у JS */
    }
    
    .tech__content-panel--active {
        display: flex; 
    }
    
    .tech__panel-content {
        flex: 1;
    }
    
    .tech__panel-image {
        flex: 0 0 40%;
    }
    
    .tech__panel-image img {
        width: 100%;
        height: 100%;
        border-radius: 0 8px 8px 0; /* Радіус справа */
        max-height: none;
    }
}

/* ЕТАП 3: СЕКЦІЯ "ВОЗМОЖНОСТИ" (FEATURES) */

.features {
    background-color: var(--bg-light); /* Знову світлий фон */
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
    overflow-x: hidden; /* Для коректного відображення десктоп-адаптиву */
}

.features__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.features__title {
    font-size: 2rem; /* 32px */
    margin-bottom: 1rem;
}

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

/* Timeline */
.features__timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* Центральна лінія (тільки для десктопа) */
.features__timeline::after {
    display: none; /* Ховаємо на мобілках */
}

.features__item {
    /* Mobile-first: flex-структура іконка + контент */
    padding: 10px 0;
    position: relative;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.features__icon-wrapper {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--text-white);
    border-radius: 50%;
    z-index: 2; /* Поверх лінії */
}

.features__icon {
    width: 28px;
    height: 28px;
}

.features__content {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    flex-grow: 1; /* Контент займає решту місця */
}

.features__content h4 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.features__content p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

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

.features__cta {
    display: inline-block;
    background-color: var(--secondary-color); /* Інший колір для різноманітності */
    color: var(--bg-white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
    margin-top: 15px;
}

.features__cta:hover {
    background-color: #00a07d; /* Темніший зелений */
    transform: translateY(-2px);
    color: var(--bg-white);
}

/* Адаптив для "Features" (Desktop) */
@media (min-width: 768px) {
    .features {
        padding: 80px 0;
    }

    .features__header {
        margin-bottom: 60px;
    }

    .features__title {
        font-size: 2.25rem; /* 36px */
    }

    /* Малюємо центральну лінію */
    .features__timeline::after {
        content: '';
        position: absolute;
        width: 3px;
        background-color: var(--border-color);
        top: 0;
        bottom: 0;
        left: 50%;
        margin-left: -1.5px;
        z-index: 1;
        display: block;
    }

    .features__item {
        padding: 20px 0;
        width: 50%;
        display: block; /* Скидаємо flex */
        position: relative;
        margin-bottom: 0; /* Скидаємо відступ */
    }

    /* Елементи зліва */
    .features__item:nth-child(odd) {
        left: 0;
        padding-right: 60px; /* Відстань до центру */
        text-align: right; /* Вирівнюємо контент */
    }

    /* Елементи справа */
    .features__item:nth-child(even) {
        left: 50%;
        padding-left: 60px; /* Відстань до центру */
    }

    /* Іконки для десктопа (позиціонуємо по центру) */
    .features__icon-wrapper {
        position: absolute;
        top: 20px; /* Вирівнюємо по верху контенту */
        right: -30px; /* Позиція на лінії (для лівих елементів) */
        transform: none; /* Скидаємо Y-transform */
    }
    
    .features__item:nth-child(even) .features__icon-wrapper {
        left: -30px; /* Позиція на лінії (для правих елементів) */
        right: auto;
    }

    .features__content {
        width: auto; /* Скидаємо flex-grow */
        padding: 20px 25px; /* Зменшуємо вертикальний падінг */
    }
}

@media (min-width: 992px) {
    .features__item:nth-child(odd) {
        padding-right: 80px;
    }
    .features__item:nth-child(even) {
        padding-left: 80px;
    }
}

/* ЕТАП 3: СЕКЦІЯ "FAQ" */

.faq {
    background-color: var(--bg-white);
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.faq__container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq__header {
    text-align: center;
    margin-bottom: 40px;
}

.faq__title {
    font-size: 2rem; /* 32px */
    margin-bottom: 1rem;
}

.faq__subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.6;
}

.faq__subtitle-link {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: underline;
}

.faq__subtitle-link:hover {
    color: var(--primary-dark);
}

/* Список питань */
.faq__list {
    border-top: 1px solid var(--border-color);
}

.faq__item {
    border-bottom: 1px solid var(--border-color);
}

.faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 0;
    
    background: none;
    border: none;
    cursor: pointer;
    
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
}

.faq__question span {
    flex: 1;
    padding-right: 15px;
}

.faq__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

/* Активний стан акордеону */
.faq__question--active {
    color: var(--primary-color);
}

.faq__question--active .faq__icon {
    transform: rotate(180deg);
}

.faq__answer {
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq__answer p {
    padding-bottom: 25px;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 95%; /* Трохи вужче для читабельності */
}

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

/* Адаптив для "FAQ" (Desktop) */
@media (min-width: 768px) {
    .faq {
        padding: 80px 0;
    }

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

    .faq__question {
        font-size: 1.25rem;
        padding: 25px 0;
    }
}

/* ЕТАП 4: СЕКЦІЯ КОНТАКТІВ */

.contact {
    background-color: var(--bg-light);
    padding: 60px 0;
    /* Це остання секція, тому нижній бордер не потрібен */
}

.contact__container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact__title {
    font-size: 2rem; /* 32px */
    margin-bottom: 1rem;
}

.contact__description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 500px;
}

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

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact__details li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-dark);
}

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

.contact__details a {
    color: var(--text-dark);
    text-decoration: none;
}
.contact__details a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Форма */
.contact__form-wrapper {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    overflow: hidden; /* Щоб картинка не виходила за радіус */
}

.contact__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.contact__form {
    padding: 30px;
}

.contact__form-title {
    font-size: 1.5rem; /* 24px */
    margin-bottom: 20px;
    text-align: center;
}

.contact__form-group {
    margin-bottom: 20px;
}

.contact__label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.contact__input {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact__input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 85, 255, 0.2);
}

/* Чекбокс */
.contact__form-group--checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 25px;
}

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

.contact__checkbox-label {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
}

.contact__checkbox-label a {
    color: var(--primary-color);
    text-decoration: underline;
}

.contact__checkbox-label a:hover {
    color: var(--primary-dark);
}

/* Кнопка */
.contact__submit-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--bg-white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
    margin-top: 20px;
}

.contact__submit-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.contact__submit-btn:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}

/* Повідомлення про успіх */
.contact__success-message {
    display: none; /* Сховано за замовчуванням */
    text-align: center;
    padding: 15px;
    margin-top: 20px;
    background-color: #d1f7e0; /* Світло-зелений */
    color: #155724; /* Темно-зелений */
    border: 1px solid #c3e6cb;
    border-radius: 8px;
}


/* Адаптив для "Contact" (Desktop) */
@media (min-width: 992px) {
    .contact {
        padding: 80px 0;
    }

    .contact__container {
        flex-direction: row;
        gap: 60px;
    }
    
    .contact__info {
        flex: 1;
        padding-top: 10px; /* Трохи опускаємо текст */
    }
    
    .contact__form-wrapper {
        flex: 1;
        max-width: 500px;
    }

    .contact__title {
        font-size: 2.25rem; /* 36px */
    }
}

/* ЕТАП 5.1: COOKIE POP-UP */

.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--text-dark);
    color: var(--text-white);
    padding: 20px 0;
    z-index: 1001; /* Поверх усього, крім, можливо, мобільного меню */
    
    /* Сховано за замовчуванням */
    transform: translateY(110%); /* 110% щоб точно сховати */
    transition: transform 0.4s ease-out;
}

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

.cookie-popup__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

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

.cookie-popup__link {
    color: var(--secondary-color); /* Акцентний зелений */
    text-decoration: underline;
    font-weight: 500;
}

.cookie-popup__link:hover {
    color: #00e0b0;
}

.cookie-popup__btn {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.cookie-popup__btn:hover {
    background-color: var(--primary-dark);
}

/* Адаптив для Cookie Pop-up (Desktop) */
@media (min-width: 768px) {
    .cookie-popup {
        padding: 25px 0;
    }
    
    .cookie-popup__container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    
    .cookie-popup__text {
        font-size: 0.95rem;
    }
}

/* ЕТАП 5.2: СТИЛІ ДЛЯ СТОРІНОК ПОЛІТИК (.pages) */

/* Цей клас .pages буде обгорткою для контенту на 
   окремих сторінках типу privacy.html, terms.html тощо.
   Ми припускаємо, що на цих сторінках також підключений style.css.
*/
.pages {
    padding: 40px 0;
    background-color: var(--bg-white);
    min-height: 60vh; /* Мінімальна висота, щоб футер не "прилипав" */
}

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

.pages h1 {
    font-family: var(--font-heading);
    font-size: 2.25rem; /* 36px */
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.pages h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem; /* 24px */
    color: var(--text-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.pages p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.pages ul {
    list-style: disc; /* Повертаємо стандартні маркери */
    padding-left: 25px; /* Відступ для маркерів */
    margin-bottom: 1.25rem;
}

.pages li {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

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

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

.pages a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

/* Адаптив для сторінок */
@media (min-width: 768px) {
    .pages {
        padding: 60px 0;
    }
    
    .pages h1 {
        font-size: 2.5rem; /* 40px */
    }

    .pages h2 {
        font-size: 1.75rem; /* 28px */
    }
}